pub fn import<Downloader, Era, P, B, BB, BH>(
downloader: Downloader,
provider: &P,
hash_collector: Collector<BlockHash, BlockNumber>,
) -> Result<BlockNumber>where
B: Block<Header = BH, Body = BB>,
BH: FullBlockHeader + Value,
BB: FullBlockBody<Transaction = <<P as NodePrimitivesProvider>::Primitives as NodePrimitives>::SignedTx, OmmerHeader = BH>,
Downloader: Stream<Item = Result<Era>> + Send + 'static + Unpin,
Era: EraMeta + Send + 'static,
P: DBProvider<Tx: DbTxMut> + StaticFileProviderFactory + BlockWriter<Block = B>,
<P as NodePrimitivesProvider>::Primitives: NodePrimitives<BlockHeader = BH, BlockBody = BB>,
Expand description
Imports history from ERA files.
Imports blocks from downloader
using provider
.
Returns current block height.