pub fn add_block(&mut self, hb: HashedBlock) -> Result<(), ApiError> {
        self.block_store.push(hb.clone())?;
        self.process_block(hb)?;
        Ok(())
    }
/// Add a block to the block_store data structure, the parent_hash must
/// match the end of the chain
Add a block to the block_store data structure, the parent_hash must
match the end of the chain
Add a block to the block_store data structure the parent_hash must match the end of the chain
pub fn add_block(&mut self, hb: HashedBlock) -> Result<(), ApiError> {
        self.block_store.push(hb.clone())?;
        self.process_block(hb)?;
        Ok(())
    }
pub fn add_block ( & mut self , hb : HashedBlock ) -> Result < ( ) , ApiError > { self . block_store . push ( hb . clone ( ) ) ? ; self . process_block ( hb ) ? ; Ok ( ( ) ) }
Add a block to the block_store data structure, the parent_hash must
match the end of the chain
Add a block to the block_store data structure the parent_hash must match the end of the chain
&mut self
hb
HashedBlock
&mut self
hb
HashedBlock