Trait hotshot_types::data::TestableLeaf
source · pub trait TestableLeaf {
type NodeType: NodeType;
// Required method
fn create_random_transaction(
&self,
rng: &mut dyn RngCore,
padding: u64,
) -> <<Self::NodeType as NodeType>::BlockPayload as BlockPayload<Self::NodeType>>::Transaction;
}
Expand description
Additional functions required to use a Leaf
with hotshot-testing.
Required Associated Types§
Required Methods§
sourcefn create_random_transaction(
&self,
rng: &mut dyn RngCore,
padding: u64,
) -> <<Self::NodeType as NodeType>::BlockPayload as BlockPayload<Self::NodeType>>::Transaction
fn create_random_transaction( &self, rng: &mut dyn RngCore, padding: u64, ) -> <<Self::NodeType as NodeType>::BlockPayload as BlockPayload<Self::NodeType>>::Transaction
Create a transaction that can be added to the block contained in this leaf.