Settings

Trait Settings 

Source
pub trait Settings {
    type Block: Block;

    // Required methods
    fn tip(&self) -> <Self::Block as Block>::Id;
    fn chain_length(&self) -> <Self::Block as Block>::ChainLength;
    fn max_number_of_transactions_per_block(&self) -> u32;
    fn block_version(&self) -> <Self::Block as Block>::Version;
}
Expand description

the settings of the blockchain this is something that can be used to maintain the blockchain protocol update details:

Required Associated Types§

Required Methods§

Source

fn tip(&self) -> <Self::Block as Block>::Id

return the tip of the current branch

Source

fn chain_length(&self) -> <Self::Block as Block>::ChainLength

the current chain_length

Source

fn max_number_of_transactions_per_block(&self) -> u32

the number of transactions in a block

Source

fn block_version(&self) -> <Self::Block as Block>::Version

the block version format

Implementors§