Function zebra_state::service::read::find::find_chain_intersection
source · fn find_chain_intersection<C>(
chain: Option<C>,
db: &ZebraDb,
known_blocks: Vec<Hash>,
) -> Option<Hash>
Expand description
Find the first hash that’s in the peer’s known_blocks
, and in chain
or db
.
Returns None
if:
- there is no matching hash in the chain, or
- the state is empty.