warning on detected inconsistency
This commit is contained in:
parent
1d9db578ff
commit
e591b4481b
@ -234,8 +234,14 @@ impl TransactionQueue {
|
|||||||
Some(Condition::Timestamp(time)) => time <= best_block_timestamp,
|
Some(Condition::Timestamp(time)) => time <= best_block_timestamp,
|
||||||
}).map(|info| info.hash)
|
}).map(|info| info.hash)
|
||||||
})
|
})
|
||||||
.filter_map(|hash| self.by_hash.get(&hash))
|
.filter_map(|hash| match self.by_hash.get(&hash) {
|
||||||
.cloned()
|
Some(tx) => Some(tx.clone()),
|
||||||
|
None => {
|
||||||
|
warn!(target: "txqueue", "Inconsistency detected between `by_hash` and `by_account`: {} not stored.",
|
||||||
|
hash);
|
||||||
|
None
|
||||||
|
}
|
||||||
|
})
|
||||||
.collect()
|
.collect()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user