From 431ba5e2609551fbf8f8f76fbfd5b6e05c0fd6b8 Mon Sep 17 00:00:00 2001 From: Arkadiy Paronyan Date: Tue, 26 Jul 2016 00:19:37 +0200 Subject: [PATCH] Restore new block informant message (#1716) --- parity/run.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/parity/run.rs b/parity/run.rs index 7c8262a66..f31bcf916 100644 --- a/parity/run.rs +++ b/parity/run.rs @@ -22,7 +22,7 @@ use ethcore_logger::{Config as LogConfig, setup_log}; use util::network_settings::NetworkSettings; use util::{Colour, version, NetworkConfiguration, U256}; use util::panics::{MayPanic, ForwardPanic, PanicHandler}; -use ethcore::client::{Mode, Switch, DatabaseCompactionProfile, VMType}; +use ethcore::client::{Mode, Switch, DatabaseCompactionProfile, VMType, ChainNotify}; use ethcore::service::ClientService; use ethcore::account_provider::AccountProvider; use ethcore::miner::{Miner, MinerService, ExternalMiner, MinerOptions}; @@ -234,9 +234,12 @@ pub fn execute(cmd: RunCmd) -> Result<(), String> { // start signer server let signer_server = try!(signer::start(cmd.signer_conf, signer_deps)); + let informant = Arc::new(Informant::new(service.client(), Some(sync_provider.clone()), Some(manage_network.clone()), cmd.logger_config.color)); + let info_notify: Arc = informant.clone(); + service.add_notify(info_notify); let io_handler = Arc::new(ClientIoHandler { client: service.client(), - info: Arc::new(Informant::new(client.clone(), Some(sync_provider.clone()), Some(manage_network.clone()), cmd.logger_config.color)), + info: informant, sync: sync_provider.clone(), net: manage_network.clone(), accounts: account_provider.clone(),