Trait ckb_traits::EpochProvider
source · [−]pub trait EpochProvider {
fn get_epoch_ext(&self, block_header: &HeaderView) -> Option<EpochExt>;
fn get_block_epoch(&self, block_header: &HeaderView) -> Option<BlockEpoch>;
}
Expand description
Trait for epoch data store.
Required methods
fn get_epoch_ext(&self, block_header: &HeaderView) -> Option<EpochExt>
fn get_epoch_ext(&self, block_header: &HeaderView) -> Option<EpochExt>
Gets corresponding EpochExt
by block header
fn get_block_epoch(&self, block_header: &HeaderView) -> Option<BlockEpoch>
fn get_block_epoch(&self, block_header: &HeaderView) -> Option<BlockEpoch>
Gets corresponding epoch progress information by block header