Struct chain_impl_mockchain::setting::Settings
source · pub struct Settings {Show 17 fields
pub consensus_version: ConsensusType,
pub consensus_nonce: PraosNonce,
pub slots_per_epoch: u32,
pub slot_duration: u8,
pub epoch_stability_depth: u32,
pub active_slots_coeff: ActiveSlotsCoeff,
pub block_content_max_size: BlockContentSize,
pub bft_leaders: Arc<[BftLeaderId]>,
pub linear_fees: LinearFee,
pub proposal_expiration: u32,
reward_params: Option<RewardParams>,
treasury_params: Option<TaxType>,
pub fees_goes_to: FeesGoesTo,
pub rewards_limit: Limit,
pub pool_participation_capping: Option<(NonZeroU32, NonZeroU32)>,
pub committees: Arc<[CommitteeId]>,
pub transaction_max_expiry_epochs: u8,
}
Fields§
§consensus_version: ConsensusType
§consensus_nonce: PraosNonce
§slots_per_epoch: u32
§slot_duration: u8
§epoch_stability_depth: u32
§active_slots_coeff: ActiveSlotsCoeff
§block_content_max_size: BlockContentSize
§bft_leaders: Arc<[BftLeaderId]>
§linear_fees: LinearFee
§proposal_expiration: u32
The number of epochs that a proposal remains valid. To be precise, if a proposal is made at date (epoch_p, slot), then it expires at the start of epoch ‘epoch_p + proposal_expiration + 1’. FIXME: make updateable.
reward_params: Option<RewardParams>
§treasury_params: Option<TaxType>
§fees_goes_to: FeesGoesTo
§rewards_limit: Limit
§pool_participation_capping: Option<(NonZeroU32, NonZeroU32)>
§committees: Arc<[CommitteeId]>
§transaction_max_expiry_epochs: u8
Implementations§
source§impl Settings
impl Settings
pub fn new() -> Self
pub fn try_apply(&self, changes: &ConfigParams) -> Result<Self, Error>
pub fn config_params(&self) -> ConfigParams
pub fn treasury_params(&self) -> TaxType
pub fn reward_params(&self) -> Parameters
Trait Implementations§
source§impl PartialEq<Settings> for Settings
impl PartialEq<Settings> for Settings
impl Eq for Settings
impl StructuralEq for Settings
impl StructuralPartialEq for Settings
Auto Trait Implementations§
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more