diff --git a/ethcore/private-tx/src/state_store.rs b/ethcore/private-tx/src/state_store.rs index ad567c533c1..014599dc56d 100644 --- a/ethcore/private-tx/src/state_store.rs +++ b/ethcore/private-tx/src/state_store.rs @@ -90,11 +90,11 @@ impl PrivateStateStorage { request_hashes: request_hashes.clone(), state: RequestState::Syncing, }; + let mut hashes = self.syncing_hashes.write(); let mut requests = self.requests.write(); requests.push(request); let mut new_hashes = Vec::new(); for hash in request_hashes { - let mut hashes = self.syncing_hashes.write(); if hashes.insert(hash, Instant::now() + Duration::from_millis(MAX_REQUEST_SESSION_DURATION)).is_none() { new_hashes.push(hash); }