pub async fn populated_state(
blocks: impl IntoIterator<Item = Arc<Block>>,
network: &Network,
) -> (Buffer<BoxService<Request, Response, BoxError>, Request>, ReadStateService, LatestChainTip, ChainTipChange)
Expand description
Initialize a state service with blocks, and return:
- a read-write
StateService
- a read-only
ReadStateService
- a
LatestChainTip
- a
ChainTipChange
tracker