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 all pool-mutating helpers on ManagedCoreFundsAccount #713
Surfaced by CodeRabbit during review of #711. The behavior described here pre-dates that PR — #711 is a structural-only split of ManagedCoreAccount into ManagedCoreFundsAccount + ManagedCoreKeysAccount and explicitly does not change runtime behavior.
Problem
On ManagedCoreFundsAccount, only next_receive_address and next_change_address bump monitor_revision after extending the watched address pool. The following pool-mutating paths do not:
When any of these extend the monitored address set, mempool / bloom-filter consumers can keep watching the old set until some unrelated mutation later happens to bump the counter.
Suggested fix
Each helper that grows or otherwise mutates a pool should call bump_monitor_revision() (or equivalent) on the success path before returning. The existing next_receive_address / next_change_address increments are the reference pattern.
Activity