Trait cardano_serialization_lib::chain_core::property::Settings
source · [−]pub trait Settings {
type Block: Block;
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:
Associated Types
Required methods
fn chain_length(&self) -> <Self::Block as Block>::ChainLength
fn chain_length(&self) -> <Self::Block as Block>::ChainLength
the current chain_length
fn max_number_of_transactions_per_block(&self) -> u32
fn max_number_of_transactions_per_block(&self) -> u32
the number of transactions in a block
fn block_version(&self) -> <Self::Block as Block>::Version
fn block_version(&self) -> <Self::Block as Block>::Version
the block version format