Commit 7b22872
[Staking Async] Saturating accrue era reward points (#9186)
Replaces regular addition with saturating addition when accumulating era
reward points in `pallet-staking-async` to prevent potential overflow.
---------
Co-authored-by: Bastian Köcher <[email protected]>1 parent 06c2ffa commit 7b22872
File tree
2 files changed
+10
-1
lines changed- prdoc
- substrate/frame/staking-async/src
2 files changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
367 | | - | |
| 367 | + | |
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
| |||
0 commit comments