pub fn get_alt_chain_history_ranges(
range: Range<BlockHeight>,
alt_chain: ChainId,
alt_chain_infos: &impl DatabaseRo<AltChainInfos>,
) -> Result<Vec<(Chain, Range<BlockHeight>)>, RuntimeError>
Expand description
Get the height history of an alt-chain in reverse chronological order.
Height history is a list of height ranges with the corresponding Chain
they are stored under.
For example if your range goes from height 0
the last entry in the list will be Chain::Main
upto the height where the first split occurs.
§Errors
This function returns RuntimeError::KeyNotFound
if the input (if applicable) doesn’t exist or other RuntimeError
’s on database errors.