Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion simulators/eth2/withdrawals/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,8 @@ func (v *Validator) VerifyWithdrawnBalance(
return false, err
}
if blockState == nil {
return false, nil
// Probably a skipped slot
continue
}

execPayload, err := blockState.ExecutionPayload()
Expand Down
6 changes: 4 additions & 2 deletions simulators/eth2/withdrawals/scenarios.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,12 @@ loop:
bc := n.BeaconClient
headBlockRoot, err := bc.BlockV2Root(ctx, eth2api.BlockHead)
if err != nil {
t.Fatalf("FAIL: Error getting head block: %v", err)
t.Logf("INFO: error getting head block: %v", err)
continue
}
if allAccountsWithdrawn, err := allValidators.Withdrawable().VerifyWithdrawnBalance(ctx, bc, ec, headBlockRoot); err != nil {
t.Fatalf("FAIL: %v", err)
t.Logf("INFO: error getting withdrawals balances: %v", err)
continue
} else if allAccountsWithdrawn {
t.Logf("INFO: All accounts have successfully withdrawn")
break loop
Expand Down