-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Txpool v2 insertion #2193
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
Merged
Merged
Txpool v2 insertion #2193
Changes from 25 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
29dd130
start definition of the pool
AurelienFT 4049dac
Merge branch 'txpool-v2' into txpool-v2-api
AurelienFT dd6f7c1
Add insertion skeleton
AurelienFT 460beef
Add all the verifications in order. Still some todo and compil errors
AurelienFT 75fb598
Fix compil errors
AurelienFT 054f648
Merge branch 'txpool-v2' into txpool-v2-api
AurelienFT a7666fc
Finish verification on all inputs
AurelienFT 4426134
fix verifications to make no copy
AurelienFT 86a7c86
Reorganize insertion and opti some code. Start rework of tests.
AurelienFT 96e0cc9
Update all the tests
AurelienFT cb635e8
Add heavy async work for insert
AurelienFT e379a0c
Merge branch 'txpool-v2' into txpool-v2-api
AurelienFT e7dc924
Clean up of the code
AurelienFT c12ee38
Update changelog
AurelienFT 4f87fbd
fix clippy
AurelienFT 3f11941
Merge branch 'txpool-v2' into txpool-v2-api
AurelienFT 697cf4c
Merge branch 'txpool-v2' into txpool-v2-api
AurelienFT fdd5f8a
Merge branch 'txpool-v2' into txpool-v2-api
AurelienFT 72add0f
Merge branch 'txpool-v2' into txpool-v2-api
AurelienFT cf9e9eb
Change insertion checks to be simplified
AurelienFT 1c59fc7
Simplified insert
AurelienFT e859b60
Fix collision system to allow multiple collision to the same tx
AurelienFT 1f8aaf8
Fix some node that wasn't removed.
AurelienFT c7b3a29
format
AurelienFT 0ebfc5c
fix max size algo and add tests
AurelienFT 82c9dd9
Update crates/services/txpool_v2/src/config.rs
AurelienFT 70a45e9
Update crates/services/txpool_v2/src/config.rs
AurelienFT 677a130
Change collision manager and add more info in error
AurelienFT 26871c8
Update pool check size
AurelienFT 76b2af4
Move logic from pool to storage
AurelienFT 13e6990
fmt and clippy
AurelienFT 6249e5d
remove unused stream predicate verif
AurelienFT d6dea78
Merge branch 'txpool-v2' into txpool-v2-api
AurelienFT 83c56ae
Change way to get less worth it transactions
AurelienFT de44984
Fix clippy
AurelienFT 2edff72
Merge branch 'txpool-v2' into txpool-v2-api
AurelienFT 029196c
Merge branch 'txpool-v2' into txpool-v2-api
AurelienFT 4bb55ba
simplify an unused function
AurelienFT 0570070
Merge branch 'txpool-v2' into txpool-v2-api
AurelienFT 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 hidden or 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
We need to document the rule that we agreed on in the code since it is not clear why we allow only one collision=)
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.
Also, I want to highlight that we agreed that this is applicable to dependent transactions. In the case of executable transactions, we can collide with more than one transaction if it is more profitable than all collided subtrees=)
But we can handle it in a separate PR if you want=) But I think it is better to return all behavior of the
BasicCollisionManagerand just check the number of collided transactions in another placeUh oh!
There was an error while loading. Please reload this page.
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.
Ok I will add the documentation and will change the behavior however I don't like to check the number of collisions depending on being executable or not outside of the
CollisionManagermaybe I can add a new separate method to the collision manager. For me it's not only a detector it should be able to resolve them and be sure that the one left are less worthThere 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.
Done I documented in collision manager and check pool full. I have split the detection and resolution of collisions in two different function and reworked the whole logic. Could be a bit optimised on the collisions resolution iteration but I think it will not be our pain point for now