Struct pow_types::FakePowHandler
source · pub struct FakePowHandler {}
Expand description
This is just used to execute PoS genesis, where pow_handler will not be used.
Trait Implementations§
source§impl PowInterface for FakePowHandler
impl PowInterface for FakePowHandler
fn next_pivot_decision<'life0, 'async_trait>(
&'life0 self,
_parent_decision: H256
) -> Pin<Box<dyn Future<Output = Option<(u64, H256)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn validate_proposal_pivot_decision( &self, _parent_decision: H256, _me_decision: H256 ) -> bool
fn get_staking_events( &self, _parent_height: u64, _me_height: u64, _parent_decision: H256, _me_decision: H256 ) -> Result<Vec<StakingEvent>>
fn wait_for_initialization<'life0, 'async_trait>(
&'life0 self,
_last_decision: H256
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn is_normal_phase(&self) -> bool
Auto Trait Implementations§
impl Freeze for FakePowHandler
impl RefUnwindSafe for FakePowHandler
impl Send for FakePowHandler
impl Sync for FakePowHandler
impl Unpin for FakePowHandler
impl UnwindSafe for FakePowHandler
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