Commit 0cc2d30
feat(staking): add applyVoterWeightDelta helper for handler hooks (IIP-59)
Defines the single entry point that subsequent handler hooks (PR 2.5) will
use to keep the VoterWeightView in sync with on-chain bucket changes.
No callers yet — the helper is no-op when the feature flag is off and
when delta is zero, so PR 2.5 can wire it next to existing
candidate.AddVote / candidate.SubVote sites without first checking
the flag.
The helper sits next to ensureVoterWeightView so all IIP-59 view-mutation
concerns are co-located.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 044dc42 commit 0cc2d30
1 file changed
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
108 | 128 | | |
109 | 129 | | |
110 | 130 | | |
| |||
0 commit comments