-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Trusted auctioneer: Add an event for optimistic head creation #4
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 94 commits into
bharath/implement-optimistic-fork-creation
from
bharath/implement-optimistic-fork-event
Jan 13, 2025
Merged
feat: Trusted auctioneer: Add an event for optimistic head creation #4
bharath-123
merged 94 commits into
bharath/implement-optimistic-fork-creation
from
bharath/implement-optimistic-fork-event
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
f879a65 to
3767bca
Compare
267d68a to
e786668
Compare
3767bca to
e51654f
Compare
9f637f0 to
eeff05b
Compare
eb28e72 to
c925895
Compare
eeff05b to
176e880
Compare
176e880 to
207d70d
Compare
207d70d to
556dc4a
Compare
c85c783 to
fe03e69
Compare
556dc4a to
4578ae6
Compare
fe03e69 to
9f7886f
Compare
4578ae6 to
721ee82
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
feat: Trusted Auctioneer: Clear mempool when mempool state is reset
feat: Trusted auctioneer: use optimistic head event in txpool's maintanance loop
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.
In the
loopmethod, we listen to theChainHeadEventto update the block on top of which the stateful mempool validation is done. For the trusted auctioneer, we want to use the latest optimistic head which has been created and not the latest head.To use the latest optimistic head, we create an event which is triggered when the optimistic block is created and set which we call
ChainOptimisticHeadEvent. We swap outChainHeadEventtoChainOptimisticHeadEventThe changes made are the following:
OptimisticHeadEventfeedCurrentOptimisticBlockpointer.ExecuteOptimisticBlockunit test to check if the event is successfully being triggered with the right information.