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§