Function zebra_state::service::read::find::find_chain_headers
source · pub fn find_chain_headers<C>(
chain: Option<C>,
db: &ZebraDb,
known_blocks: Vec<Hash>,
stop: Option<Hash>,
max_len: u32,
) -> Vec<Arc<Header>>
Expand description
Finds the first hash that’s in the peer’s known_blocks
and the chain.
Returns a list of headers that follow that intersection, from the chain.
See find_chain_hashes()
for details.