bitcoinchain-interface 0.1.16-alpha.0

interface for giving clients ability to access the chain state, receive notifications, estimate fees, and submit transactions
Documentation
crate::ix!();

pub trait ChainStateInterface: 
CoinsTip 
+ ChainHeight
+ IsInitialBlockDownload
+ ActivateBestChain
{}

pub trait CoinsTip {
    fn coins_tip(&mut self) -> &mut CoinsViewCache;
}

pub trait ActivateBestChain {

    fn activate_best_chain(
        &mut self, 
        state:  &mut BlockValidationState,
        pblock: Amo<Block>) -> bool;
}