Trait hotshot_types::traits::block_contents::Transaction
source · pub trait Transaction:
Clone
+ Serialize
+ DeserializeOwned
+ Debug
+ PartialEq
+ Eq
+ Sync
+ Send
+ Committable
+ Hash {
// Required method
fn minimum_block_size(&self) -> u64;
}
Expand description
Abstraction over any type of transaction. Used by BlockPayload
.
Required Methods§
sourcefn minimum_block_size(&self) -> u64
fn minimum_block_size(&self) -> u64
The function to estimate the transaction size It takes in the transaction itself and a boolean indicating if the transaction adds a new namespace Since each new namespace adds overhead just ignore this parameter by default and use it when needed
Object Safety§
This trait is not object safe.