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§
sourcefn chain_length(&self) -> <Self::Block as Block>::ChainLength
fn chain_length(&self) -> <Self::Block as Block>::ChainLength
the current chain_length
sourcefn max_number_of_transactions_per_block(&self) -> u32
fn max_number_of_transactions_per_block(&self) -> u32
the number of transactions in a block
sourcefn block_version(&self) -> <Self::Block as Block>::Version
fn block_version(&self) -> <Self::Block as Block>::Version
the block version format