-
Notifications
You must be signed in to change notification settings - Fork 286
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core-transaction-pool): sort by fee, nonce (#2937)
The merge 3923c37 wrongly removed the method sortAll() from memory.ts. This method was sorting transactions in the pool by fee, nonce (sorted by highest fee first, but transactions from the same sender must be sorted lowest nonce first). Restore the sortAll() method as of before the merge and adapt it to use the calculateTransactionExpiration() method for expiration sorting.
- Loading branch information
Showing
2 changed files
with
75 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters