Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
apply suggestions
  • Loading branch information
tac0turtle
tac0turtle committed May 6, 2025
commit cc9f89ffaa5185ed62d41c237e253be0e3b586cb
7 changes: 6 additions & 1 deletion execution/evm/execution.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ func (c *EngineClient) InitChain(ctx context.Context, genesisTime time.Time, ini
return nil, 0, fmt.Errorf("engine_forkchoiceUpdatedV3 failed: %w", err)
}

if forkchoiceResult.PayloadStatus.Status != engine.VALID {
return nil, 0, fmt.Errorf("genesis forkchoice status is %s: %w",
forkchoiceResult.PayloadStatus.Status, ErrInvalidPayloadStatus)
}

_, stateRoot, gasLimit, _, err := c.getBlockInfo(ctx, 0)
Comment thread
coderabbitai[bot] marked this conversation as resolved.
if err != nil {
return nil, 0, fmt.Errorf("failed to get block info: %w", err)
Expand Down Expand Up @@ -217,7 +222,7 @@ func (c *EngineClient) ExecuteTxs(ctx context.Context, txs [][]byte, blockHeight
return nil, 0, fmt.Errorf("new payload submission failed: %w", err)
}

if newPayloadResult.Status != engine.VALID {
if newPayloadResult.Status != engine.VALID && newPayloadResult.Status != engine.ACCEPTED {
return nil, 0, ErrInvalidPayloadStatus
}
Comment thread
coderabbitai[bot] marked this conversation as resolved.

Expand Down