pub fn build_index<P, B, BB, BH>(
provider: &P,
hash_collector: &mut Collector<BlockHash, BlockNumber>,
) -> Result<()>where
B: Block<Header = BH, Body = BB>,
BH: FullBlockHeader + Value,
BB: FullBlockBody<Transaction = <<P as NodePrimitivesProvider>::Primitives as NodePrimitives>::SignedTx, OmmerHeader = BH>,
P: DBProvider<Tx: DbTxMut> + NodePrimitivesProvider + BlockWriter<Block = B>,
<P as NodePrimitivesProvider>::Primitives: NodePrimitives<BlockHeader = BH, BlockBody = BB>,
Expand description
Imports history from ERA files.
Dumps the contents of hash_collector
into [tables::HeaderNumbers
].