-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Trusted Auctioneer: Clear mempool when mempool state is reset #8
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
bharath-123
merged 87 commits into
bharath/use-optimistic-fork-event
from
bharath/clear-mempool
Jan 13, 2025
Merged
feat: Trusted Auctioneer: Clear mempool when mempool state is reset #8
bharath-123
merged 87 commits into
bharath/use-optimistic-fork-event
from
bharath/clear-mempool
Jan 13, 2025
Conversation
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
9d50c4d to
294e394
Compare
8308b34 to
b1190a5
Compare
294e394 to
bcfeacc
Compare
b1190a5 to
8ba16ed
Compare
bcfeacc to
dcb9f9a
Compare
8ba16ed to
9b4fc78
Compare
dcb9f9a to
a398f94
Compare
9b4fc78 to
31aa2f0
Compare
a398f94 to
6d2cf55
Compare
d623d80 to
bcac6c2
Compare
6d2cf55 to
bbdf862
Compare
bcac6c2 to
64907bb
Compare
bbdf862 to
8a663d7
Compare
64907bb to
4d59dca
Compare
8a663d7 to
c4399d9
Compare
664fc48 to
d9484cc
Compare
c4399d9 to
674bb32
Compare
d9484cc to
af14e44
Compare
674bb32 to
708d153
Compare
af14e44 to
23244aa
Compare
708d153 to
0fac052
Compare
chore: Trusted Auctioneer: update the protos
feat: Trusted Auctioneer: Add initial set of metrics for auctioneer
feat: Trusted Auctioneer: Code cleanups
…-block feat: Trusted Auctioneer: Add API to query the current optimistic block
feat: Trusted Auctioneer: Support unmarshalling signed allocations and placing it at the TOB
feat: Trusted Auctioneer: Add a cmd line flag to run a Flame node in auctioneer mode
refactor: Trusted Auctioneer: Separate execution api service and optimistic execution api service
feat: Trusted Auctioneer: Implement bundle streaming
…ecution feat: Trusted Auctioneer: implement stream execute optimistic block
feat: Trusted Auctioneer: add event which is triggered when the mempool is cleared
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Whenever we create a new Optimistic block, we throw an event which is being listened for in the txpool maintenance loop. When we receive a new optimistic block, we update the state of the pool to point the head block and state to the new optimistic block.
The trusted auctioneer also clears the pending and queued transactions in the mempool when the pool state is updated. We do this to validate that only transactions who can pay their priority fees based on the stateful validations are sent to the trusted auctioneer.
Changes made:
ClearListmethod to theliststruct which clears the transaction list.clearPendingAndQueuedto theLegacyPoolstruct which clears the pending and queued transactions.