Function zebra_state::service::read::find::block_locator

source ·
pub fn block_locator<C>(chain: Option<C>, db: &ZebraDb) -> Option<Vec<Hash>>
where C: AsRef<Chain>,
Expand description

Create a block locator from chain and db.

A block locator is used to efficiently find an intersection of two node’s chains. It contains a list of block hashes at decreasing heights, skipping some blocks, so that any intersection can be located, no matter how long or different the chains are.