Skip to content
Snippets Groups Projects
Verified Commit e14d69c7 authored by Michal Kucharczyk's avatar Michal Kucharczyk
Browse files

mempool: validated_at stored

parent 766ae6b8
No related merge requests found
Pipeline #485277 waiting for manual action with stages
in 10 minutes and 7 seconds
......@@ -226,7 +226,9 @@ where
let duration = start.elapsed();
let (invalid_hashes, _): (Vec<_>, Vec<_>) =
validation_results.into_iter().partition(|(xt_hash, _, validation_result)| {
validation_results.into_iter().partition(|(xt_hash, xt, validation_result)| {
xt.validated_at
.store(finalized_block.number.into().as_u64(), atomic::Ordering::Relaxed);
match validation_result {
Ok(Ok(_)) |
Ok(Err(TransactionValidityError::Invalid(InvalidTransaction::Future))) => false,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment