From 27580586e00c97de272fe0237629e2a778a5f40b Mon Sep 17 00:00:00 2001 From: arkpar Date: Thu, 15 Dec 2016 20:09:05 +0100 Subject: [PATCH] Minor tweaks --- ethcore/src/miner/transaction_queue.rs | 2 +- ethcore/src/types/transaction.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ethcore/src/miner/transaction_queue.rs b/ethcore/src/miner/transaction_queue.rs index a13fc01c4..1c8a3d17d 100644 --- a/ethcore/src/miner/transaction_queue.rs +++ b/ethcore/src/miner/transaction_queue.rs @@ -984,7 +984,7 @@ impl TransactionQueue { let mut delayed = HashSet::new(); for t in self.current.by_priority.iter() { let tx = self.by_hash.get(&t.hash).expect("All transactions in `current` and `future` are always included in `by_hash`"); - let sender = tx.transaction.sender().expect("Queue only contains transactions with valid sender"); + let sender = tx.sender(); if delayed.contains(&sender) { continue; } diff --git a/ethcore/src/types/transaction.rs b/ethcore/src/types/transaction.rs index 681e38fcc..25e91afe5 100644 --- a/ethcore/src/types/transaction.rs +++ b/ethcore/src/types/transaction.rs @@ -390,7 +390,7 @@ impl Deref for LocalizedTransaction { } } -/// Queued information with additional information. +/// Queued transaction with additional information. #[derive(Debug, Clone, PartialEq, Eq, Binary)] pub struct PendingTransaction { /// Signed transaction data.