Flipping sealing_enabled flag after no requests for sealing_block for some time

This commit is contained in:
Tomasz Drwięga
2016-03-18 13:59:11 +01:00
parent cee45e1a8e
commit 0dc1ddef9a
2 changed files with 59 additions and 5 deletions

View File

@@ -218,11 +218,11 @@ impl BlockChainClient for TestBlockChainClient {
}
fn prepare_sealing(&self, _author: Address, _gas_floor_target: U256, _extra_data: Bytes, _transactions: Vec<SignedTransaction>) -> Option<ClosedBlock> {
unimplemented!()
None
}
fn try_seal(&self, _block: ClosedBlock, _seal: Vec<Bytes>) -> Result<SealedBlock, ClosedBlock> {
unimplemented!()
fn try_seal(&self, block: ClosedBlock, _seal: Vec<Bytes>) -> Result<SealedBlock, ClosedBlock> {
Err(block)
}
fn block_header(&self, id: BlockId) -> Option<Bytes> {