From 8d15338c84738f45e139ad7198950702f78ffca5 Mon Sep 17 00:00:00 2001 From: Svyatoslav Nikolsky Date: Thu, 21 Dec 2017 16:20:34 +0300 Subject: [PATCH] SecretStore: removed extra-tracing --- secret_store/src/listener/service_contract.rs | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/secret_store/src/listener/service_contract.rs b/secret_store/src/listener/service_contract.rs index c49bf49b7..deed4da3e 100644 --- a/secret_store/src/listener/service_contract.rs +++ b/secret_store/src/listener/service_contract.rs @@ -174,8 +174,8 @@ impl ServiceContract for OnChainServiceContract { // read server key generation requests let request_logs = client.logs(Filter { - from_block: BlockId::Hash(first_block.clone()), - to_block: BlockId::Hash(last_block.clone()), + from_block: BlockId::Hash(first_block), + to_block: BlockId::Hash(last_block), address: Some(vec![address]), topics: vec![ Some(vec![*SERVER_KEY_REQUESTED_EVENT_NAME_HASH]), @@ -186,20 +186,13 @@ impl ServiceContract for OnChainServiceContract { limit: None, }); - trace!(target: "secretstore", "{}: read {} events from service contract in blocks {}..{}", - self.self_key_pair.public(), request_logs.len(), first_block, last_block); - Box::new(request_logs.into_iter().map(|log| log.entry.topics)) } fn read_pending_requests(&self) -> Box> { let client = match self.client.get() { Some(client) => client, - None => { - warn!(target: "secretstore", "{}: client is untrusted during read_pending_requests call", - self.self_key_pair.public()); - return Box::new(::std::iter::empty()); - }, + None => return Box::new(::std::iter::empty()), }; // we only need requests that are here for more than REQUEST_CONFIRMATIONS_REQUIRED blocks