-
Notifications
You must be signed in to change notification settings - Fork 837
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Layered Transaction Pool #5290
Merged
Merged
Layered Transaction Pool #5290
Changes from all commits
Commits
Show all changes
178 commits
Select commit
Hold shift + click to select a range
c848491
Introduce experimental layered transaction pool
fab-10 9aabb1f
new Xlayered-tx-pool flag to enabled the new tx pool
fab-10 145b648
Move pending transaction sorter tests in the sorter folder
fab-10 e971cd7
Unit tests for new and old transaction pool
fab-10 ccd62a6
Fix: do not decrease size when promoting ready txs
fab-10 0eef31e
Fix: remove tx from orderByFee when replaced
fab-10 f0f4ca4
Fix: decrease size when removing confirmed txs
fab-10 748153e
Fix: always recreate orderByFee for London fee market
fab-10 e966c70
Fix: transaction removal counter when txs added to block
fab-10 c14e3fd
Fix: update expected nonce when demoting a prioritized transaction
fab-10 5fa1603
Fix: correctly remove expected nonce entry when removing the last pri…
fab-10 e2d1c2c
Fix NullPointerException when the replaced tx is not prioritized
fab-10 47386b0
Replace postponed with spare transactions
fab-10 ed3036e
Merge branch 'main' into txpoolng-spare
fab-10 d448c6a
WIP
fab-10 019132e
WIP
fab-10 4fe3b7d
Merge branch 'main' into txpoolng-spare
fab-10 9437ec3
Fix merge from main
fab-10 61c9819
Fixed most tests
fab-10 b423be4
Fix more tests
fab-10 b9e65d9
Rename and reorg some classes
fab-10 797734e
More renaming and code clean up
fab-10 05e24da
Refactor transaction pool metrics
fab-10 c4e124e
Stats log refined
fab-10 874c277
Cleanup unit tests
fab-10 96e5c08
Merge branch 'main' into txpoolng-spare
fab-10 19edef4
Improve stats log
fab-10 2ae9150
Merge branch 'main' into txpoolng-spare
fab-10 22b1c5c
Merge branch 'main' into txpoolng-spare
fab-10 f06cc1e
Remove unnecessary test parameters
fab-10 fa564d9
Merge branch 'main' into txpoolng-spare
fab-10 93f10a4
Merge branch 'main' into txpoolng-spare
fab-10 c29f83f
Fix unit test
fab-10 1caecbd
Merge branch 'main' into txpoolng-spare
fab-10 86a7980
Merge branch 'main' into txpoolng-spare
fab-10 97cb031
Merge branch 'main' into txpoolng-spare
fab-10 40f2953
Merge branch 'main' into txpoolng-spare
fab-10 832acd8
Merge branch 'main' into txpoolng-spare
fab-10 8dbe0c2
Merge branch 'main' into txpoolng-spare
fab-10 d53e279
Cancel older block creation tasks upon receiving a new one
siladu dd07102
Merge branch 'main' into txpoolng-spare
fab-10 b8e51d9
Merge branch 'main' into txpoolng-spare
fab-10 3393742
Merge branch 'main' into txpoolng-spare
fab-10 4548610
Fixes to expected next nonce for sender
fab-10 6f51eb8
Fix promotion filter and use synchronized methods instead of blocks
fab-10 3694828
Merge branch 'main' into txpoolng-spare
fab-10 35bfd7f
Fix metrics concurrent access issue
fab-10 891f869
Fixes
fab-10 5b8116f
Configuration options for the layered txpool
fab-10 794df58
Use long instead of Instant for PendingTransaction add time
fab-10 3362bca
Fixes
fab-10 ed27cef
Move layered txpool clasess in a dedicated package
fab-10 0fabe80
Fixes
fab-10 258396a
WIP
fab-10 b00d2b0
Remove confirmed transaction from sparse set too
fab-10 2a0c64c
Merge branch 'main' into txpoolng-spare
fab-10 1f3accd
Merge branch 'txpoolng-spare' into layered-txpool
fab-10 0143b27
WIP
fab-10 0a1b15f
WIP
fab-10 d7426d4
Fill gap on added tx
fab-10 8a30dcf
Fix eviction on sparse layer
fab-10 c8a575d
Merge branch 'main' into layered-txpool
fab-10 972b15b
Fix remove from ready layer
fab-10 c7f18fa
Fix remove from sparse layer
fab-10 cabbbc7
Fix for block added and confirmed txs
fab-10 1635bcf
Merge branch 'main' into layered-txpool
fab-10 9374afe
Fixes to sparse layer
fab-10 cefb91d
Merge branch 'main' into layered-txpool
fab-10 d842afa
Fix the filling of the gap when adding transactions
fab-10 e72218b
Layered pending transactions test and fixes
fab-10 2448472
Merge branch 'main' into layered-txpool
fab-10 6f0d10e
Distinguish between layer and comulative space used
fab-10 6e3863a
unit tests for expected next nonce for sender
fab-10 fbf45c1
Adding test for transaction selection
fab-10 9bb5bc2
Re-enable prioritized transaction tests and more fixes
fab-10 b1f9724
Merge branch 'main' into layered-txpool
fab-10 99d244d
log stats
fab-10 a1b581c
syncronized some methods, metrics update and dump transactions for re…
fab-10 fe302a6
Merge branch 'main' into layered-txpool
fab-10 415c8e9
Test that replay tx and fix for tx replacement across layers
fab-10 0f6e753
Merge branch 'main' into layered-txpool
fab-10 f0777d2
Add missing copyright and fix replay test
fab-10 b14b145
Add consistency check asserts
fab-10 471d549
Fix ready internalRemove
fab-10 cce108d
Metrics tests improvements
fab-10 0edb5c3
WIP: Transaction memory size estimation
fab-10 35341b1
Merge branch 'main' into layered-txpool
fab-10 5e73642
Complete pending transaction memory used computation
fab-10 d29bc72
Improve metrics
fab-10 283391c
Rename to specify that the limit is per layer
fab-10 f2788af
Update metric names in tests
fab-10 cb0c421
Adjust tx layer max capacity according to new tx memory size calculation
fab-10 78e05e8
Fix legacy transaction expiration tests
fab-10 b8c3f85
Fix IndexOutOfBoundsException in sparse layer
fab-10 e07ee59
Unique senders metric
fab-10 32b6371
Ignore ReplayTest by default, fix logging of stats
fab-10 ddcaf96
Log for replay renamings
fab-10 f0a5811
Document howto generate txpool replay
fab-10 30228bd
Merge branch 'main' into layered-txpool
fab-10 665579a
Reduce max layer capacity
fab-10 3b7ea28
exclude transaction replay resource
fab-10 96c428b
Improve compareByFee when effectivePriorityFee is 0
fab-10 b066a6e
More debug logs during transaction selection for a block
fab-10 cd559bf
Merge branch 'main' into layered-txpool
fab-10 a7ffd23
Merge branch 'main' into cancel-previous-proposal
fab-10 bd3a7f4
Use only one thread for building blocks so there is no risk of overla…
fab-10 d5095ef
Merge branch 'cancel-previous-proposal' into layered-txpool
fab-10 08d1d55
Improve transaction trace log making wei human readable
fab-10 a1673b2
Merge branch 'main' into layered-txpool
fab-10 81b6e2c
Use List instead of Set when getting all pending transactions
fab-10 e6d07c3
More detailed log on adding remote txs
fab-10 51bd8b6
Execute transaction broadcast aysnc after adding them to the txpool
fab-10 6859df9
Merge branch 'main' into layered-txpool
fab-10 1e94f5d
Log time taken to add remote txs before their broadcast
fab-10 abc84a5
Merge branch 'main' into layered-txpool
fab-10 3df503f
Merge branch 'main' into layered-txpool
fab-10 0c7e92f
Fix test
fab-10 dcb827e
Add missing header
fab-10 0f8acd5
Fix unit tests
fab-10 5d7aa03
Merge branch 'main' into layered-txpool
fab-10 5bcf462
Add CHANGELOG entry
fab-10 277d0ec
Delete unneeded file
fab-10 7c2ee91
Merge branch 'main' into layered-txpool
fab-10 b4a99ed
Merge branch 'main' into layered-txpool
fab-10 a6ba009
Merge branch 'main' into layered-txpool
fab-10 da84a62
Rename some layered txpool metrics to avoid conflict with existing me…
fab-10 6c0e861
Merge branch 'main' into layered-txpool
fab-10 145bad5
Fix pushing to next layers txs following an invalid one
fab-10 0cfa8d7
In case of an unexpected error, log more data and do a consistency check
fab-10 1736a24
Merge branch 'main' into layered-txpool
fab-10 735cb42
Fix null check on wrong var
fab-10 672fda9
Merge branch 'main' into layered-txpool
fab-10 71f8ef8
Merge branch 'main' into layered-txpool
fab-10 a757b37
Fix some codeql alerts
fab-10 3571a55
Fix sparse gap calculation when invalidating
fab-10 879c97c
Merge branch 'main' into layered-txpool
fab-10 94bc6be
Apply suggestions from doce review
fab-10 7b5edf3
Merge branch 'main' into layered-txpool
fab-10 f78fd04
Only trigger consistency check if trace log is enable in case of unex…
fab-10 fca36d9
Fix replay of blocks with no transactions
fab-10 3b3690a
Fix for negative gap when there is a reorg
fab-10 fe0fb97
Merge branch 'main' into layered-txpool
fab-10 1dc2187
Implement code review suggestions
fab-10 56fcd56
Fix for a case when deleting tx with zero gap in sparse layer
fab-10 8a71560
Delete redoundant tests
fab-10 28e76d8
Update CHANGELOG.md
fab-10 5d8e716
Update ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/t…
fab-10 536fb4a
Update ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/t…
fab-10 be0b21c
Update ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/t…
fab-10 4d7e271
Update ethereum/eth/src/test/java/org/hyperledger/besu/ethereum/eth/t…
fab-10 55babc4
Update ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/t…
fab-10 dd7aef5
Update besu/src/main/java/org/hyperledger/besu/cli/options/unstable/T…
fab-10 145d2ca
Update besu/src/main/java/org/hyperledger/besu/cli/options/unstable/T…
fab-10 fffd537
Address code review suggestions
fab-10 8d6d3d7
Merge branch 'main' into layered-txpool
fab-10 5064a45
Improve logSender when there are no sparse txs
fab-10 4cddd61
Fix off by one error
fab-10 ceee4ee
Update ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/t…
fab-10 195f7b5
Address code review suggestions
fab-10 c07ff09
Merge branch 'layered-txpool' of github.com:fab-10/besu into layered-…
fab-10 a14fd0d
Rename fix
fab-10 f71f0d9
Merge branch 'main' into layered-txpool
garyschulte 5359f3e
Simplify the way reorgs are handled, by detecting a negative gap and …
fab-10 c7d72bd
Merge branch 'main' into layered-txpool
fab-10 71e2cf7
Merge branch 'layered-txpool' of github.com:fab-10/besu into layered-…
fab-10 099d12c
Merge branch 'main' into layered-txpool
garyschulte 44af2ae
Merge branch 'main' into layered-txpool
fab-10 e9a4127
Do not run consistency check on internal error since it is too expens…
fab-10 accd498
Merge branch 'layered-txpool' of github.com:fab-10/besu into layered-…
fab-10 ba71304
Remove invalid txs after the selection is complete to avoid Concurren…
fab-10 414de9b
Merge branch 'main' into layered-txpool
macfarla 00ac64f
Merge branch 'main' into layered-txpool
macfarla d5b28bc
Merge branch 'main' into layered-txpool
fab-10 de0402e
Update txpool defaults
fab-10 dd77949
Merge branch 'main' into layered-txpool
fab-10 7d28a93
Tune default
fab-10 c19e3f1
Fix merge
fab-10 01f1825
Merge branch 'main' into layered-txpool
fab-10 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
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
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
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
accidental commit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is a dupe of line 2