move Sealing methods to MiningBlockChainClient

This commit is contained in:
keorn
2016-12-10 17:40:20 +01:00
parent 239ba61a99
commit b9909da8b1
5 changed files with 37 additions and 20 deletions

View File

@@ -362,6 +362,18 @@ impl MiningBlockChainClient for TestBlockChainClient {
}
fn broadcast_proposal_block(&self, _block: SealedBlock) {}
fn broadcast_message(&self, _message: Bytes) {}
fn update_sealing(&self) {
self.miner.update_sealing(self)
}
fn submit_seal(&self, block_hash: H256, seal: Vec<Bytes>) {
if self.miner.submit_seal(self, block_hash, seal).is_err() {
warn!(target: "poa", "Wrong internal seal submission!")
}
}
}
impl BlockChainClient for TestBlockChainClient {