Commit cde60b87 authored by Bastian Köcher's avatar Bastian Köcher Committed by GitHub
Browse files

Revalidate transactions only on latest best block (#6824)



* Revalidate transactions only on latest best block

We should revalidate transactions only on the latest best block and not
on any arbitrary block. The revalidation before failed when there were
multiple blocks on the height given to the revalidation function, but no
block was imported as best block.

* Update test-utils/runtime/transaction-pool/src/lib.rs

Co-authored-by: default avatarJaco Greeff <[email protected]>

* Fix tests

* Only process best blocks in the transaction pool

Co-authored-by: default avatarJaco Greeff <[email protected]>
parent 837c18dd
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