pub fn push_blocks_at(&self, at: BlockId<Block>, count: usize, with_tx: bool) -> H256 {
		let mut nonce = 0;
		if with_tx {
			self.generate_blocks_at(at, count, BlockOrigin::File, |mut builder| {
				let transfer = Transfer {
					from: AccountKeyring::Alice.into(),
					to: AccountKeyring::Alice.into(),
					amount: 1,
					nonce,
				};
				let signature = AccountKeyring::from_public(&transfer.from).unwrap().sign(&transfer.encode()).into();
				builder.push(Extrinsic::Transfer(transfer, signature)).unwrap();
				nonce = nonce + 1;
				builder.bake().unwrap()
			})
		} else {
			self.generate_blocks_at(at, count, BlockOrigin::File, |builder| builder.bake().unwrap())
		}
	}
/// Push blocks to the peer (simplified: with or without a TX) starting from
/// given hash.
Push blocks to the peer (simplified: with or without a TX) starting from
given hash.
Push blocks to the peer ( simplified : with or without a TX ) starting from given hash .
pub fn push_blocks_at(&self, at: BlockId<Block>, count: usize, with_tx: bool) -> H256 {
		let mut nonce = 0;
		if with_tx {
			self.generate_blocks_at(at, count, BlockOrigin::File, |mut builder| {
				let transfer = Transfer {
					from: AccountKeyring::Alice.into(),
					to: AccountKeyring::Alice.into(),
					amount: 1,
					nonce,
				};
				let signature = AccountKeyring::from_public(&transfer.from).unwrap().sign(&transfer.encode()).into();
				builder.push(Extrinsic::Transfer(transfer, signature)).unwrap();
				nonce = nonce + 1;
				builder.bake().unwrap()
			})
		} else {
			self.generate_blocks_at(at, count, BlockOrigin::File, |builder| builder.bake().unwrap())
		}
	}
pub fn push_blocks_at ( & self , at : BlockId < Block > , count : usize , with_tx : bool ) -> H256 { let mut nonce = 0 ; if with_tx { self . generate_blocks_at ( at , count , BlockOrigin :: File , | mut builder | { let transfer = Transfer { from : AccountKeyring :: Alice . into ( ) , to : AccountKeyring :: Alice . into ( ) , amount : 1 , nonce , } ; let signature = AccountKeyring :: from_public ( & transfer . from ) . unwrap ( ) . sign ( & transfer . encode ( ) ) . into ( ) ; builder . push ( Extrinsic :: Transfer ( transfer , signature ) ) . unwrap ( ) ; nonce = nonce + 1 ; builder . bake ( ) . unwrap ( ) } ) } else { self . generate_blocks_at ( at , count , BlockOrigin :: File , | builder | builder . bake ( ) . unwrap ( ) ) } }
Push blocks to the peer (simplified: with or without a TX) starting from
given hash.
Push blocks to the peer ( simplified : with or without a TX ) starting from given hash .
&self
at
BlockId<Block>
count
usize
with_tx
bool
&self
at
BlockId<Block>
count
usize
with_tx
bool