Trait 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§

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§