-
Notifications
You must be signed in to change notification settings - Fork 4.5k
geyser: add is_reload
argument to on_load
#33674
Conversation
This changes the interface. Why does a plugin care about if it is reload or a new load? |
The plugin can have a special logic for accounts from snapshot and will not work on reloading / loading through rpc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are bunch of CI fmt failures, please correct
Updated! |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #33674 +/- ##
=========================================
- Coverage 81.9% 81.9% -0.1%
=========================================
Files 811 811
Lines 219628 219628
=========================================
- Hits 179974 179926 -48
- Misses 39654 39702 +48 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Problem
Plugins are not able to distinguish loading and reloading.
Summary of Changes
Add
is_reload
argument toon_load
plugin function.