Minor tweaks

This commit is contained in:
arkpar 2016-12-15 20:09:05 +01:00
parent 450a9d2867
commit 27580586e0
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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.