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 }}
Repository navigation
key-wallet: bump monitor_revision in pool-mutating helpers on ManagedCoreKeysAccount #715
Surfaced by CodeRabbit during review of #711, where ManagedCoreKeysAccount is introduced as a sibling of ManagedCoreFundsAccount without funds-tracking state. The new struct mirrors the existing ManagedCoreFundsAccount revision-bump pattern faithfully — i.e. it inherits the same gap (see #713).
Problem
mark_address_used, next_address, next_address_with_info, next_bls_operator_key, next_eddsa_platform_key, next_private_key, peek_next_path (commit), mark_first_pool_index_used, and next_path can all extend or otherwise change the monitored address set, but none of them invalidate monitor_revision. Once ManagedCoreKeysAccount is wired into the collection (PR 2), this means a keys-only account can derive fresh identity / provider addresses and still keep being matched against the old filter until some unrelated code bumps the revision.
Suggested fix
Apply the same bump_monitor_revision() policy on the success path of every pool-mutating helper. Keep this in sync with whatever lands for ManagedCoreFundsAccount (#713).
Note on scheduling
ManagedCoreKeysAccount is dead code at present (no callers in the workspace). This issue can be addressed at any time, but it is most natural to fix alongside the funds-account counterpart and certainly before PR 2 wires the keys variant into ManagedAccountCollection.
Activity