pub trait TestableBlock<TYPES: NodeType>: BlockPayload<TYPES> + Debug {
    // Required methods
    fn genesis() -> Self;
    fn txn_count(&self) -> u64;
}
Expand description

extra functions required on block to be usable by hotshot-testing

Required Methods§

source

fn genesis() -> Self

generate a genesis block

source

fn txn_count(&self) -> u64

the number of transactions in this block

Object Safety§

This trait is not object safe.

Implementors§