Skip to main content

update_alt_chain_info

Function update_alt_chain_info 

Source
pub fn update_alt_chain_info(
    db: &BlockchainDatabase,
    alt_block_height: &AltBlockHeight,
    prev_hash: &BlockHash,
) -> DbResult<()>
Expand description

Updates the AltChainInfo with information on a new alt-block.

ยงPanics

This may panic if the block is invalid.

THIS IS NOT ATOMIC