Skip to content

Commit

Permalink
eth/catalyst: Add even more sleeps to make tests get over payload int…
Browse files Browse the repository at this point in the history
…erruption
  • Loading branch information
sebastianst committed Dec 15, 2023
1 parent 597ba58 commit fd3c8d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions eth/catalyst/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,7 @@ func assembleBlock(api *ConsensusAPI, parentHash common.Hash, params *engine.Pay
if err != nil {
return nil, err
}
waitForPayloadToBuild()
return payload.ResolveFull().ExecutionPayload, nil
}

Expand Down Expand Up @@ -920,6 +921,7 @@ func TestNewPayloadOnInvalidTerminalBlock(t *testing.T) {
if err != nil {
t.Fatalf("error preparing payload, err=%v", err)
}
waitForPayloadToBuild()
data := *payload.Resolve().ExecutionPayload
// We need to recompute the blockhash, since the miner computes a wrong (correct) blockhash
txs, _ := decodeTransactions(data.Transactions)
Expand Down

0 comments on commit fd3c8d7

Please sign in to comment.