1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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;
}