pub fn generate_blocks<F>(&self, count: usize, origin: BlockOrigin, edit_block: F) -> H256
		where F: FnMut(BlockBuilder<Block, PeersClient>) -> Block
	{
		let best_hash = self.client.info().unwrap().chain.best_hash;
		self.generate_blocks_at(BlockId::Hash(best_hash), count, origin, edit_block)
	}
/// Add blocks to the peer -- edit the block before adding
Add blocks to the peer -- edit the block before adding
Add blocks to the peer -- edit the block before adding
pub fn generate_blocks<F>(&self, count: usize, origin: BlockOrigin, edit_block: F) -> H256
		where F: FnMut(BlockBuilder<Block, PeersClient>) -> Block
	{
		let best_hash = self.client.info().unwrap().chain.best_hash;
		self.generate_blocks_at(BlockId::Hash(best_hash), count, origin, edit_block)
	}
pub fn generate_blocks < F > ( & self , count : usize , origin : BlockOrigin , edit_block : F ) -> H256 where F : FnMut ( BlockBuilder < Block , PeersClient > ) -> Block { let best_hash = self . client . info ( ) . unwrap ( ) . chain . best_hash ; self . generate_blocks_at ( BlockId :: Hash ( best_hash ) , count , origin , edit_block ) }
Add blocks to the peer -- edit the block before adding
Add blocks to the peer -- edit the block before adding
&self
count
usize
origin
BlockOrigin
edit_block
F
&self
count
usize
origin
BlockOrigin
edit_block
F