Skip to content

Conversation

@bharath-123
Copy link
Contributor

@bharath-123 bharath-123 commented Oct 1, 2024

This PR implements the GetBundleStream RPC. This API listens to pending txs via the SubscribeTransactions event and streams these txs in a Bundle to a client who is listening to the GetBundleStream stream.

We compute the effective tip paid per transactions and send this information akong with the Bundle

We ensure only one client can connect to the GetBundleStream streaming API by maintaining a bundleStreamConnected atomic boolean. We perform a CompareAndSwap on bundleStreamConnected to update it from false to true, everytime a client tries to connect to the bundle stream. If it is already true, then the connection attempt is failed.

Changes made:

  1. Implement the StreamBundles RPC
  2. Implement the MockServerSideStreaming
  3. Add unit tests

@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/implement-optimistic-execution branch from 4c77ff2 to b607990 Compare October 16, 2024 17:58
@bharath-123 bharath-123 force-pushed the bharath/implement-bundle-streaming branch from 32d1d4d to ffe73e3 Compare October 16, 2024 18:07
@bharath-123 bharath-123 force-pushed the bharath/implement-optimistic-execution branch from b607990 to 00ec806 Compare October 24, 2024 07:01
@bharath-123 bharath-123 force-pushed the bharath/implement-bundle-streaming branch 2 times, most recently from c487186 to fee630e Compare October 24, 2024 08:37
@bharath-123 bharath-123 force-pushed the bharath/implement-optimistic-execution branch from a78ff12 to 9868513 Compare October 24, 2024 08:52
@bharath-123 bharath-123 force-pushed the bharath/implement-bundle-streaming branch from fee630e to 2218a40 Compare October 24, 2024 08:55
@bharath-123 bharath-123 force-pushed the bharath/implement-optimistic-execution branch from 9868513 to 96030a1 Compare October 24, 2024 15:25
@bharath-123 bharath-123 force-pushed the bharath/implement-bundle-streaming branch from 2218a40 to 4581600 Compare October 24, 2024 15:27
@bharath-123 bharath-123 force-pushed the bharath/implement-optimistic-execution branch from 96030a1 to a3c4509 Compare October 29, 2024 08:58
@bharath-123 bharath-123 force-pushed the bharath/implement-bundle-streaming branch from 4581600 to 6616712 Compare October 29, 2024 09:06
@bharath-123 bharath-123 force-pushed the bharath/implement-optimistic-execution branch from a3c4509 to d7f0830 Compare November 4, 2024 06:48
@bharath-123 bharath-123 force-pushed the bharath/implement-bundle-streaming branch 2 times, most recently from 6bc048b to 9590af9 Compare November 5, 2024 06:07
@bharath-123 bharath-123 force-pushed the bharath/implement-optimistic-execution branch from 822240a to ffa4fcb Compare November 10, 2024 09:12
@bharath-123 bharath-123 force-pushed the bharath/implement-bundle-streaming branch 2 times, most recently from acf1822 to 755c2f5 Compare November 11, 2024 08:09
@bharath-123 bharath-123 force-pushed the bharath/implement-optimistic-execution branch from ffa4fcb to 5c33b09 Compare November 12, 2024 08:45
@bharath-123 bharath-123 force-pushed the bharath/implement-bundle-streaming branch 2 times, most recently from 1f815a1 to 2fb98b9 Compare November 12, 2024 11:40
@bharath-123 bharath-123 force-pushed the bharath/implement-optimistic-execution branch from 27d7ce4 to 3013a91 Compare November 20, 2024 06:55
@bharath-123 bharath-123 force-pushed the bharath/implement-bundle-streaming branch from 2fb98b9 to c4fd5a0 Compare November 20, 2024 06:55
@bharath-123 bharath-123 force-pushed the bharath/implement-bundle-streaming branch from c4fd5a0 to 779ff8d Compare December 2, 2024 12:31
@bharath-123 bharath-123 force-pushed the bharath/implement-optimistic-execution branch from ae9498d to 7471ef9 Compare January 9, 2025 09:56
@bharath-123 bharath-123 force-pushed the bharath/implement-bundle-streaming branch from 779ff8d to 6599983 Compare January 9, 2025 09:56
@bharath-123 bharath-123 force-pushed the bharath/implement-optimistic-execution branch from 7471ef9 to db067e1 Compare January 13, 2025 17:55
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
@bharath-123 bharath-123 merged commit 43fdcea into bharath/implement-optimistic-execution 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