Minor tweaks
This commit is contained in:
parent
450a9d2867
commit
27580586e0
@ -984,7 +984,7 @@ impl TransactionQueue {
|
|||||||
let mut delayed = HashSet::new();
|
let mut delayed = HashSet::new();
|
||||||
for t in self.current.by_priority.iter() {
|
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 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) {
|
if delayed.contains(&sender) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -390,7 +390,7 @@ impl Deref for LocalizedTransaction {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Queued information with additional information.
|
/// Queued transaction with additional information.
|
||||||
#[derive(Debug, Clone, PartialEq, Eq, Binary)]
|
#[derive(Debug, Clone, PartialEq, Eq, Binary)]
|
||||||
pub struct PendingTransaction {
|
pub struct PendingTransaction {
|
||||||
/// Signed transaction data.
|
/// Signed transaction data.
|
||||||
|
Loading…
Reference in New Issue
Block a user