Closed jpraynaud closed 1 month ago
We need the block scanners to return list of ChainBlockNextActions instead of Vec<ScannedBlock> in order to be able to handle rollbacks.
ChainBlockNextActions
Vec<ScannedBlock>
Adapt the BlockStreamer interface and implementations to return a ChainScannedBlocks (name TBD):
BlockStreamer
ChainScannedBlocks
enum ChainScannedBlocks { RollForwards(Vec<ScannedBlock>), RollBackward(ChainPoint) }
TransactionsImporter
Why
We need the block scanners to return list of
ChainBlockNextActions
instead ofVec<ScannedBlock>
in order to be able to handle rollbacks.What
Adapt the
BlockStreamer
interface and implementations to return aChainScannedBlocks
(name TBD):How
TransactionsImporter
accordingly