Struct chainhook_sdk::chainhooks::types::PoxConfig
source · pub struct PoxConfig {
pub genesis_block_height: u64,
pub prepare_phase_len: u64,
pub reward_phase_len: u64,
pub rewarded_addresses_per_block: usize,
}Fields§
§genesis_block_height: u64§prepare_phase_len: u64§reward_phase_len: u64§rewarded_addresses_per_block: usizeImplementations§
source§impl PoxConfig
impl PoxConfig
pub fn is_consensus_rewarding_participants_at_block_height( &self, block_height: u64 ) -> bool
pub fn get_pox_cycle_len(&self) -> u64
pub fn get_pox_cycle_id(&self, block_height: u64) -> u64
pub fn get_pos_in_pox_cycle(&self, block_height: u64) -> u64
pub fn get_burn_address(&self) -> &str
Auto Trait Implementations§
impl RefUnwindSafe for PoxConfig
impl Send for PoxConfig
impl Sync for PoxConfig
impl Unpin for PoxConfig
impl UnwindSafe for PoxConfig
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
§fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where A: Array<Item = T>,
Converts
self into a collection.