add a path to submit seal from engine

This commit is contained in:
keorn
2016-11-16 15:56:16 +00:00
parent 3b0d5503b1
commit 51bbad66d0
4 changed files with 26 additions and 4 deletions

View File

@@ -569,6 +569,13 @@ impl Client {
self.miner.update_sealing(self)
}
/// Used by PoA to submit gathered signatures.
pub 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!")
}
}
/// Attempt to get a copy of a specific block's final state.
///
/// This will not fail if given BlockID::Latest.