Skip to main content

TestableBlock

Trait TestableBlock 

Source
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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§