An interface that supports fetching contiguous sets of blocks (e.g. block B and 10 of B's parents) must be added to the Fetcher in order for more robust forms of network syncing (blocksync or graphsync) to be added later. This new interface should work with the existing chain syncing code.
Acceptance criteria
Define and implement an interface on the Fetcher that supports fetching a block and N of its parents.
Description
An interface that supports fetching contiguous sets of blocks (e.g. block
B
and 10 ofB
's parents) must be added to the Fetcher in order for more robust forms of network syncing (blocksync or graphsync) to be added later. This new interface should work with the existing chain syncing code.Acceptance criteria
N
of its parents.