Skip to content

Conversation

@bharath-123
Copy link
Contributor

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

This PR adds an event.feed to the legacy pool to which an event is sent after the mempool is cleared after a reset.

Changes made:

  1. Add mempoolClearedFeed to legacy pool
  2. Send event to this feed after mempool is cleared in clearPendingAndQueued
  3. Add unit tests

@bharath-123 bharath-123 force-pushed the bharath/add-mempool-clearing-event branch from 67e8bb3 to 7428c4f Compare September 27, 2024 10:30
@bharath-123 bharath-123 force-pushed the bharath/add-mempool-clearing-event branch from 7428c4f to 14d50b2 Compare September 27, 2024 11:06
@bharath-123 bharath-123 changed the title feat: add event which is triggered when the mempool is cleared feat: Trusted Auctioneer: add event which is triggered when the mempool is cleared Sep 30, 2024
@bharath-123 bharath-123 force-pushed the bharath/add-mempool-clearing-event branch from 14d50b2 to 9d5e8a9 Compare September 30, 2024 18:09
@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/clear-mempool branch from 9b4fc78 to 31aa2f0 Compare October 16, 2024 11:27
@bharath-123 bharath-123 force-pushed the bharath/add-mempool-clearing-event branch 2 times, most recently from c39ff65 to f13364b Compare October 16, 2024 17:53
@bharath-123 bharath-123 force-pushed the bharath/add-mempool-clearing-event branch from f13364b to 0be6ac1 Compare October 24, 2024 06:43
@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/add-mempool-clearing-event branch from 0be6ac1 to 59f90a7 Compare October 24, 2024 08:50
@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/add-mempool-clearing-event branch from 59f90a7 to 5d40100 Compare October 24, 2024 15:24
@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/add-mempool-clearing-event branch from 5d40100 to 40652a0 Compare October 29, 2024 08:17
Comment on lines 1797 to 1800
pool.mempoolClearFeed.Send(core.NewMempoolCleared{
NewHead: newHead,
})

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has to be at the end of runReorg so that this doesn't run with the pool mutex lock held.

@bharath-123 bharath-123 force-pushed the bharath/add-mempool-clearing-event branch from 15d4ce4 to e7abf02 Compare November 10, 2024 09:09
@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/add-mempool-clearing-event branch from e7abf02 to 0158846 Compare November 12, 2024 08:45
@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/add-mempool-clearing-event branch from 0158846 to fd3dd2c Compare November 20, 2024 06:54
@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/add-mempool-clearing-event branch from fd3dd2c to 99acf19 Compare January 9, 2025 09:55
@bharath-123 bharath-123 force-pushed the bharath/clear-mempool branch from 23244aa to 01be512 Compare January 13, 2025 17:47
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
@bharath-123 bharath-123 merged commit 41fb511 into bharath/clear-mempool 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