zebra_chain::parameters::subsidy

Trait ParameterSubsidy

source
pub trait ParameterSubsidy {
    // Required methods
    fn height_for_first_halving(&self) -> Height;
    fn post_blossom_halving_interval(&self) -> HeightDiff;
    fn pre_blossom_halving_interval(&self) -> HeightDiff;
    fn funding_stream_address_change_interval(&self) -> HeightDiff;
}
Expand description

Functionality specific to block subsidy-related consensus rules

Required Methods§

source

fn height_for_first_halving(&self) -> Height

Returns the minimum height after the first halving as described in protocol specification §7.10

source

fn post_blossom_halving_interval(&self) -> HeightDiff

Returns the halving interval after Blossom

source

fn pre_blossom_halving_interval(&self) -> HeightDiff

Returns the halving interval before Blossom

source

fn funding_stream_address_change_interval(&self) -> HeightDiff

Returns the address change interval for funding streams as described in protocol specification §7.10.

FSRecipientChangeInterval := PostBlossomHalvingInterval / 48

Implementors§

source§

impl ParameterSubsidy for Network

Network methods related to Block Subsidy and Funding Streams