Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Add entry notification service for geyser#31290

Merged
CriesofCarrots merged 7 commits intosolana-labs:masterfrom
CriesofCarrots:entry-notif-service
May 10, 2023
Merged

Add entry notification service for geyser#31290
CriesofCarrots merged 7 commits intosolana-labs:masterfrom
CriesofCarrots:entry-notif-service

Conversation

@CriesofCarrots
Copy link
Copy Markdown
Contributor

Problem

#30910 added gesyer-plugin-manager support for entry notifications, but notify_entry() isn't actually called anywhere yet.

Summary of Changes

Add service thread that takes messages from a channel and sends Entry notifications via geyser, only when a geyser plugin supports notifying entries.
Notifications are still not actually being sent, because nothing is sending messages to the channel. But this PR makes the initial plumbing of the EntryNotifierSender into the Tvu and Tpu. Separate PRs will implement notifier sends from each of these code paths.

@CriesofCarrots CriesofCarrots force-pushed the entry-notif-service branch 3 times, most recently from b24a71a to 4cd8b61 Compare April 20, 2023 20:20
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 20, 2023

Codecov Report

Merging #31290 (5500c4a) into master (3293ca4) will increase coverage by 0.1%.
The diff coverage is 47.8%.

❗ Current head 5500c4a differs from pull request most recent head 0e71d14. Consider uploading reports for the commit 0e71d14 to get more accurate results

@@            Coverage Diff            @@
##           master   #31290     +/-   ##
=========================================
+ Coverage    81.3%    81.4%   +0.1%     
=========================================
  Files         733      732      -1     
  Lines      204786   208809   +4023     
=========================================
+ Hits       166517   170041   +3524     
- Misses      38269    38768    +499     

Comment thread core/src/tpu.rs
Comment thread ledger/src/entry_notifier_service.rs Outdated
@CriesofCarrots
Copy link
Copy Markdown
Contributor Author

Rebased to pick up CI fixes

@CriesofCarrots CriesofCarrots force-pushed the entry-notif-service branch 2 times, most recently from b299ec2 to 08dc6c2 Compare April 27, 2023 19:29
@CriesofCarrots CriesofCarrots force-pushed the entry-notif-service branch from 08dc6c2 to 0cb91d9 Compare May 3, 2023 19:17
Comment thread core/src/validator.rs Outdated
Comment thread core/src/validator.rs Outdated
@CriesofCarrots CriesofCarrots merged commit 3f70ddb into solana-labs:master May 10, 2023
@CriesofCarrots CriesofCarrots deleted the entry-notif-service branch May 25, 2023 22:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants