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
@@ -48,6 +48,7 @@ use self::header_chain::{AncestryIter, HeaderChain, HardcodedSync};
|
||||
use cache::Cache;
|
||||
|
||||
pub use self::service::Service;
|
||||
use client_traits::ForceUpdateSealing;
|
||||
|
||||
mod header_chain;
|
||||
mod service;
|
||||
@@ -626,7 +627,7 @@ impl<T: ChainDataFetcher> client_traits::ChainInfo for Client<T> {
|
||||
}
|
||||
|
||||
impl<T: ChainDataFetcher> client_traits::EngineClient for Client<T> {
|
||||
fn update_sealing(&self) { }
|
||||
fn update_sealing(&self, _force: ForceUpdateSealing) {}
|
||||
fn submit_seal(&self, _block_hash: H256, _seal: Vec<Vec<u8>>) { }
|
||||
fn broadcast_consensus_message(&self, _message: Vec<u8>) { }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user