Skip to content

Conversation

@bharath-123
Copy link
Contributor

@bharath-123 bharath-123 commented Sep 23, 2024

In the loop method, we listen to the ChainHeadEvent to 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 out ChainHeadEvent to ChainOptimisticHeadEvent

The changes made are the following:

  1. Create an OptimisticHeadEvent feed
  2. Send the block event when we are setting the CurrentOptimisticBlock pointer.
  3. Add code in the ExecuteOptimisticBlock unit test to check if the event is successfully being triggered with the right information.

@bharath-123 bharath-123 changed the title feat: Add an event for optimistic head creation feat: Trusted auctioneer: Add an event for optimistic head creation Sep 24, 2024
@bharath-123 bharath-123 force-pushed the bharath/implement-optimistic-fork-event branch 3 times, most recently from f879a65 to 3767bca Compare September 30, 2024 18:02
@bharath-123 bharath-123 marked this pull request as ready for review October 1, 2024 18:10
@bharath-123 bharath-123 force-pushed the bharath/implement-optimistic-fork-creation branch from 267d68a to e786668 Compare October 16, 2024 11:21
@bharath-123 bharath-123 force-pushed the bharath/implement-optimistic-fork-event branch from 3767bca to e51654f Compare October 16, 2024 11:25
@bharath-123 bharath-123 force-pushed the bharath/implement-optimistic-fork-event branch 2 times, most recently from 9f637f0 to eeff05b Compare October 24, 2024 09:13
@bharath-123 bharath-123 force-pushed the bharath/implement-optimistic-fork-creation branch from eb28e72 to c925895 Compare October 29, 2024 08:01
@bharath-123 bharath-123 force-pushed the bharath/implement-optimistic-fork-event branch from eeff05b to 176e880 Compare October 29, 2024 08:06
@bharath-123 bharath-123 force-pushed the bharath/implement-optimistic-fork-event branch from 176e880 to 207d70d Compare November 12, 2024 08:43
@bharath-123 bharath-123 force-pushed the bharath/implement-optimistic-fork-event branch from 207d70d to 556dc4a Compare November 20, 2024 06:47
@bharath-123 bharath-123 force-pushed the bharath/implement-optimistic-fork-creation branch from c85c783 to fe03e69 Compare January 9, 2025 09:48
@bharath-123 bharath-123 force-pushed the bharath/implement-optimistic-fork-event branch from 556dc4a to 4578ae6 Compare January 9, 2025 09:49
@bharath-123 bharath-123 force-pushed the bharath/implement-optimistic-fork-creation branch from fe03e69 to 9f7886f Compare January 13, 2025 17:38
@bharath-123 bharath-123 force-pushed the bharath/implement-optimistic-fork-event branch from 4578ae6 to 721ee82 Compare January 13, 2025 17:40
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
@bharath-123 bharath-123 merged commit 2e26e91 into bharath/implement-optimistic-fork-creation Jan 13, 2025
@bharath-123 bharath-123 mentioned this pull request Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants