Fix PoW blockchains sealing notifications in chain_new_blocks (#8656)

This commit is contained in:
Wei Tang 2018-05-31 21:28:25 +08:00 committed by Afri Schoedon
parent 581e510c2d
commit 00b209a29e
1 changed files with 1 additions and 1 deletions

View File

@ -2181,7 +2181,7 @@ impl ImportSealedBlock for Client {
route
};
let route = ChainRoute::from([route].as_ref());
self.importer.miner.chain_new_blocks(self, &[h.clone()], &[], route.enacted(), route.retracted(), true);
self.importer.miner.chain_new_blocks(self, &[h.clone()], &[], route.enacted(), route.retracted(), self.engine.seals_internally().is_some());
self.notify(|notify| {
notify.new_blocks(
vec![h.clone()],