Skip to content

Commit

Permalink
Fix ElectraStateUpgradeTest
Browse files Browse the repository at this point in the history
  • Loading branch information
lucassaldanha committed Dec 4, 2024
1 parent 14ce636 commit f2bdbeb
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ void canUpgradeFromDeneb() {
// = (64 *10^9) - (64 *10^9) MOD 10^9
// = (64 *10^9) - 0
assertThat(post.getExitBalanceToConsume()).isEqualTo(UInt64.valueOf(64_000_000_000L));
assertThat(post.getEarliestExitEpoch()).isEqualTo(slot.dividedBy(8).increment());
assertThat(post.getEarliestExitEpoch())
.isEqualTo(
miscHelpersElectra.computeActivationExitEpoch(
spec.computeEpochAtSlot(slot).increment()));
assertThat(post.getConsolidationBalanceToConsume()).isEqualTo(UInt64.ZERO);
// 80_000/8 (slots -> epochs) + max_seed_lookahead + 1
assertThat(post.getEarliestConsolidationEpoch()).isEqualTo(UInt64.valueOf(10005));
Expand Down

0 comments on commit f2bdbeb

Please sign in to comment.