pub trait ChainWrapperExt: ChainWrapper {
Show 14 methods fn genesis(blockgen: fn(_: i64) -> Block, timestamp: i64) -> Self
    where
        Self: Sized
; fn find_one_block(&self, hash: &H256) -> Option<Block> { ... } fn find_one_depth(&self, hash: &H256) -> Option<u128> { ... } fn find_one_header(&self, hash: &H256) -> Option<BlockHeader> { ... } fn find_one_height(&self, height: u128) -> H256 { ... } fn find_one_payload(&self, hash: &H256) -> Option<BlockData> { ... } fn get_chain_quality(&self) -> f32 { ... } fn get_all_blocks_from_longest(&self) -> Vec<H256> { ... } fn get_longest_chain(&self) -> Vec<Block> { ... } fn get_pos_difficulty(&self) -> H256 { ... } fn get_pow_difficulty(&self, current_ts: BlockTs, parent: H256) -> H256 { ... } fn is_block(&self, hash: &H256) -> bool { ... } fn is_new_epoch_and_count_blocks(
        &self,
        current_ts: BlockTs
    ) -> Option<HashMap<Vec<u8>, HashSet<H256>>> { ... } fn print_longest_chain(&self) { ... }
}

Required Methods

Create a new blockchain

Provided Methods

TODO: Finalize the chain quality

Quickly check for a blocks existance

Implementors