Module block_iter

Module block_iter 

Source
Expand description

Iterators for blocks in the non-finalized and finalized state.

Structsยง

Iter ๐Ÿ”’
Generic state chain iterator, which iterates by block height or hash. Can be used for blocks, block headers, or any type indexed by HashOrHeight.

Traitsยง

ChainItem ๐Ÿ”’
A trait that implements iteration for a specific chain type.

Functionsยง

any_ancestor_blocks ๐Ÿ”’
Returns a block iterator over the relevant chain containing hash, in order from the largest height to genesis.
any_chain_ancestor_iter ๐Ÿ”’
Returns a generic chain item iterator over the relevant chain containing hash, in order from the largest height to genesis.
known_chain_ancestor_iter ๐Ÿ”’
Returns a generic chain item iterator over a chain containing hash_or_height, in order from the largest height to genesis.