We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ceb59e3 commit 4e74ed1Copy full SHA for 4e74ed1
beacon_node/store/src/hdiff.rs
@@ -454,7 +454,9 @@ impl ValidatorsDiff {
454
Hash256::ZERO
455
},
456
// effective_balance can increase and decrease
457
- effective_balance: y.effective_balance - x.effective_balance,
+ effective_balance: y
458
+ .effective_balance
459
+ .wrapping_sub(x.effective_balance),
460
// slashed can only change from false into true. In an index re-use it can
461
// switch back to false, but in that case the pubkey will also change.
462
slashed: y.slashed,
0 commit comments