enable force sealing
This commit is contained in:
parent
165e2bef75
commit
8a86c11375
@ -479,7 +479,7 @@ impl Miner {
|
|||||||
|
|
||||||
/// Uses Engine to seal the block internally and then imports it to chain.
|
/// Uses Engine to seal the block internally and then imports it to chain.
|
||||||
fn seal_and_import_block_internally(&self, chain: &MiningBlockChainClient, block: ClosedBlock) -> bool {
|
fn seal_and_import_block_internally(&self, chain: &MiningBlockChainClient, block: ClosedBlock) -> bool {
|
||||||
if !block.transactions().is_empty() {
|
if !block.transactions().is_empty() || self.forced_sealing() {
|
||||||
if let Ok(sealed) = self.seal_block_internally(block) {
|
if let Ok(sealed) = self.seal_block_internally(block) {
|
||||||
if chain.import_block(sealed.rlp_bytes()).is_ok() {
|
if chain.import_block(sealed.rlp_bytes()).is_ok() {
|
||||||
trace!(target: "miner", "import_block_internally: imported internally sealed block");
|
trace!(target: "miner", "import_block_internally: imported internally sealed block");
|
||||||
|
Loading…
Reference in New Issue
Block a user