fn chain_ending_at( headers: &BTreeMap<u64, &Header>, tip: u64, ) -> Option<Vec<u64>>
Returns, in sequence order, the chain that ends at tip if tip is complete, see select_chain.
tip
select_chain