You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
#10147 introduced separate subscription maps for gossip-triggered notifications, such that only subscriptions set with SingleGossip commitment are checked when a new single-confirmation slot is detected in gossip. This concept could be applied to the Bank-triggered notifications as well. Currently, when a node votes on a new Bank, the subscription service checks all Bank subscriptions, wasting effort if the known max, root, or highest confirmed slot has not actually changed.
Proposed Solution
Refactor Bank-triggered subscriptions to only check subscriptions with a commitment-level known to have changed. This would look something like:
extend last_checked_slots cache to track max-, root-, and single-commitment checked slots
index subscriptions by commitment level to easily check subsets; bring gossip_*_subscriptions back into the fold
add subscription id lookup map to enable quick unsubscribe operations across commitment levels
This issue has been automatically locked since there has not been any activity in past 7 days after it was closed. Please open a new issue for related bugs.
Problem
#10147 introduced separate subscription maps for gossip-triggered notifications, such that only subscriptions set with SingleGossip commitment are checked when a new single-confirmation slot is detected in gossip. This concept could be applied to the Bank-triggered notifications as well. Currently, when a node votes on a new Bank, the subscription service checks all Bank subscriptions, wasting effort if the known max, root, or highest confirmed slot has not actually changed.
Proposed Solution
Refactor Bank-triggered subscriptions to only check subscriptions with a commitment-level known to have changed. This would look something like:
last_checked_slots
cache to track max-, root-, and single-commitment checked slotsgossip_*_subscriptions
back into the foldcc @jstarry
The text was updated successfully, but these errors were encountered: