From 840f961dc29d0642d21394576a2e21006c6c8c2e Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Tue, 21 Jun 2016 14:34:22 +0200 Subject: [PATCH] don't bother assigning queue. --- ethcore/src/miner/miner.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ethcore/src/miner/miner.rs b/ethcore/src/miner/miner.rs index e559306c0..563eb0eed 100644 --- a/ethcore/src/miner/miner.rs +++ b/ethcore/src/miner/miner.rs @@ -108,8 +108,7 @@ impl Miner { trace!(target: "miner", "prepare_sealing: entering"); let (transactions, mut open_block) = { - let queue = self.transaction_queue.lock().unwrap(); - let transactions = queue.top_transactions(); + let transactions = {self.transaction_queue.lock().unwrap().top_transactions()}; let mut sealing_work = self.sealing_work.lock().unwrap(); let best_hash = chain.best_block_header().sha3(); /*