Make InstantSeal Instant again (#11186)
* Make InstantSeal Instant again * update_sealing if there are transactions in pool after impoerting a block, some line formatting * Apply suggestions from code review Co-Authored-By: Tomasz Drwięga <tomusdrw@users.noreply.github.com> * InstantSeal specific behaviour * introduce engine.should_reseal_on_update, remove InstantSealService * remove unused code * add force param to update_sealing * better docc * even better docs * revert code changes, doc corrections, sort dep * code optimization * fix test * fix bench
This commit is contained in:
committed by
Andronik Ordian
parent
8adde605e9
commit
887aa62fdb
@@ -20,7 +20,7 @@ use std::sync::Arc;
|
||||
use std::collections::{BTreeMap, BTreeSet, HashMap};
|
||||
|
||||
use bytes::Bytes;
|
||||
use client_traits::{Nonce, StateClient};
|
||||
use client_traits::{Nonce, StateClient, ForceUpdateSealing};
|
||||
use engine::{Engine, signer::EngineSigner};
|
||||
use ethcore::block::SealedBlock;
|
||||
use ethcore::client::{PrepareOpenBlock, EngineInfo};
|
||||
@@ -192,7 +192,7 @@ impl MinerService for TestMinerService {
|
||||
}
|
||||
|
||||
/// New chain head event. Restart mining operation.
|
||||
fn update_sealing<C>(&self, _chain: &C) {
|
||||
fn update_sealing<C>(&self, _chain: &C, _force: ForceUpdateSealing) {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user