Skip to content

Conversation

@bharath-123
Copy link
Contributor

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

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:

  1. Add a ClearList method to the list struct which clears the transaction list.
  2. Add a method for clearPendingAndQueued to the LegacyPool struct which clears the pending and queued transactions.
  3. We remove transaction promotion during a reset as we are anyways clearing the mempool.

@bharath-123 bharath-123 force-pushed the bharath/use-optimistic-fork-event branch from 9d50c4d to 294e394 Compare September 27, 2024 10:26
@bharath-123 bharath-123 force-pushed the bharath/use-optimistic-fork-event branch from 294e394 to bcfeacc Compare September 27, 2024 11:00
@bharath-123 bharath-123 force-pushed the bharath/use-optimistic-fork-event branch from bcfeacc to dcb9f9a Compare September 30, 2024 18:04
@bharath-123 bharath-123 changed the title feat: Clear mempool when mempool state is reset feat: Trusted Auctioneer: Clear mempool when mempool state is reset Sep 30, 2024
@bharath-123 bharath-123 marked this pull request as ready for review October 1, 2024 18:11
@bharath-123 bharath-123 force-pushed the bharath/use-optimistic-fork-event branch from dcb9f9a to a398f94 Compare October 16, 2024 11:26
@bharath-123 bharath-123 force-pushed the bharath/clear-mempool branch from 9b4fc78 to 31aa2f0 Compare October 16, 2024 11:27
@bharath-123 bharath-123 force-pushed the bharath/use-optimistic-fork-event branch from a398f94 to 6d2cf55 Compare October 24, 2024 08:46
@bharath-123 bharath-123 force-pushed the bharath/clear-mempool branch from d623d80 to bcac6c2 Compare October 24, 2024 08:49
@bharath-123 bharath-123 force-pushed the bharath/use-optimistic-fork-event branch from 6d2cf55 to bbdf862 Compare October 24, 2024 15:21
@bharath-123 bharath-123 force-pushed the bharath/clear-mempool branch from bcac6c2 to 64907bb Compare October 24, 2024 15:23
@bharath-123 bharath-123 force-pushed the bharath/use-optimistic-fork-event branch from bbdf862 to 8a663d7 Compare October 29, 2024 08:09
@bharath-123 bharath-123 force-pushed the bharath/clear-mempool branch from 64907bb to 4d59dca Compare October 29, 2024 08:11
@bharath-123 bharath-123 force-pushed the bharath/use-optimistic-fork-event branch from 8a663d7 to c4399d9 Compare November 12, 2024 08:44
@bharath-123 bharath-123 force-pushed the bharath/clear-mempool branch from 664fc48 to d9484cc Compare November 12, 2024 08:44
@bharath-123 bharath-123 force-pushed the bharath/use-optimistic-fork-event branch from c4399d9 to 674bb32 Compare November 20, 2024 06:50
@bharath-123 bharath-123 force-pushed the bharath/clear-mempool branch from d9484cc to af14e44 Compare November 20, 2024 06:53
@bharath-123 bharath-123 force-pushed the bharath/use-optimistic-fork-event branch from 674bb32 to 708d153 Compare January 9, 2025 09:49
@bharath-123 bharath-123 force-pushed the bharath/clear-mempool branch from af14e44 to 23244aa Compare January 9, 2025 09:55
@bharath-123 bharath-123 force-pushed the bharath/use-optimistic-fork-event branch from 708d153 to 0fac052 Compare January 13, 2025 17:45
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
@bharath-123 bharath-123 merged commit 11cebfd into bharath/use-optimistic-fork-event 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