Questions tagged [block-import]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
1 answer
71 views

What exactly is `indexed_body` and how to deal with it?

The IncomingBlock struct has a field called indexed_body, containing a Vec<Vec<u8>>. As far as I can tell this is sometimes sent with a block, although only when specifically requested. If ...
Tomasz Kisielewski's user avatar
5 votes
2 answers
153 views

How does a parachain collator reliably know which parachain block (candidate recipt) got included on the relaychain to build the next block on?

I understand the entire path of a parachain block upto and including its candidateReciept being "included" on the relaychain, and its erasure coded PoVs being available with the relaychain ...
Shoeb Siddiqui's user avatar
5 votes
1 answer
103 views

How to detect if a block is finalized already in block import

I have written a simple block import that wraps grandpa block import, it does tiny verification and calls grandpa block import after that, it looks like this: pub struct CustomBlockImport<I> { ...
dadzerlaze's user avatar
  • 1,073
3 votes
1 answer
54 views

Is block creation guaranteed to be running after parent block is fully imported?

I observe an issue for a long time that I can't explain. There is a value produced in BlockImport::import_block that must be included in inherents of n+1. Though sometimes it seems like value is not ...
nazar-pc's user avatar
  • 539
3 votes
1 answer
33 views

Do we need to implement the `Verifier` trait if we are providing our own implementation of `ImportQueue`?

Let's say I have a consensus engine called X. I know that most consensus engines import blocks through something with the trait ImportQueue, and BasicQueue is a popular choice for that. Consensus ...
Purple_Turtle's user avatar
1 vote
0 answers
218 views

Block Sync and manual import of blocks

I need to manually import some blocks, i.e. I am downloading some blocks using an external tool and want to make them pass whole verification pipeline and be included in substrate's db and visible to ...
zbyszko's user avatar
  • 11
0 votes
0 answers
86 views

Block import crashes on block where authorities have changed

We recently upgraded our chain from substrate V3 to polkadot-0.9.24. When we try to sync a node from 0, the block import fails on the first block where the authorities were changes (some block creator ...
Dylan Verstraete's user avatar
10 votes
1 answer
81 views

How to properly split logic between block verifier and block import?

I found it a bit confusing that part of the logic for block verification is in sc_consensus::import_queue::Verifier::verify() implementation and another part is in sc_consensus::block_import::...
nazar-pc's user avatar
  • 539