pub struct MinerTestingSetup { /* private fields */ }Implementations§
source§impl MinerTestingSetup
impl MinerTestingSetup
pub fn block(&mut self, prev_hash: &u256) -> Arc<Block>
pub fn good_block(&mut self, prev_hash: &u256) -> Arc<Block>
pub fn bad_block(&mut self, prev_hash: &u256) -> Arc<Block>
pub fn finalize_block(&mut self, pblock: Arc<Block>) -> Arc<Block>
pub fn build_chain( &mut self, root: &u256, height: i32, invalid_rate: u32, branch_rate: u32, max_size: u32, blocks: &mut Vec<Arc<Block>> )
Auto Trait Implementations§
impl !RefUnwindSafe for MinerTestingSetup
impl !Send for MinerTestingSetup
impl !Sync for MinerTestingSetup
impl Unpin for MinerTestingSetup
impl !UnwindSafe for MinerTestingSetup
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more