TARAXA
taraxa::FicusHardforkConfig Struct Reference

#include <hardfork.hpp>

Collaboration diagram for taraxa::FicusHardforkConfig:

Public Member Functions

bool isFicusHardfork (taraxa::PbftPeriod period) const
 
bool isPillarBlockPeriod (taraxa::PbftPeriod period, bool skip_first_pillar_block=false) const
 
bool isPbftWithPillarBlockPeriod (taraxa::PbftPeriod period) const
 
taraxa::PbftPeriod firstPillarBlockPeriod () const
 
void validate (uint32_t delegation_delay) const
 

Public Attributes

uint64_t block_num {10}
 
uint64_t pillar_blocks_interval {10}
 
taraxa::addr_t bridge_contract_address
 

Member Function Documentation

◆ firstPillarBlockPeriod()

taraxa::PbftPeriod taraxa::FicusHardforkConfig::firstPillarBlockPeriod ( ) const
Returns
first pillar block period

◆ isFicusHardfork()

bool taraxa::FicusHardforkConfig::isFicusHardfork ( taraxa::PbftPeriod  period) const

◆ isPbftWithPillarBlockPeriod()

bool taraxa::FicusHardforkConfig::isPbftWithPillarBlockPeriod ( taraxa::PbftPeriod  period) const
Parameters
period
Returns
true if period is the period, during which pillar block hash is included in pbft block

◆ isPillarBlockPeriod()

bool taraxa::FicusHardforkConfig::isPillarBlockPeriod ( taraxa::PbftPeriod  period,
bool  skip_first_pillar_block = false 
) const
Parameters
period
skip_first_pillar_blockif true, isPillarBlockPeriod returns false if period == first pillar block period
Returns
true if period is the pbft period, during which new pillar block is created

◆ validate()

void taraxa::FicusHardforkConfig::validate ( uint32_t  delegation_delay) const

Member Data Documentation

◆ block_num

uint64_t taraxa::FicusHardforkConfig::block_num {10}

◆ bridge_contract_address

taraxa::addr_t taraxa::FicusHardforkConfig::bridge_contract_address

◆ pillar_blocks_interval

uint64_t taraxa::FicusHardforkConfig::pillar_blocks_interval {10}

The documentation for this struct was generated from the following files: