Skip to content

Commit c124ae9

Browse files
eth/catalyst: nit for error creation
1 parent 1132ea4 commit c124ae9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

eth/catalyst/api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,9 @@ func computePayloadId(headBlockHash common.Hash, params *PayloadAttributesV1) []
235235

236236
func (api *ConsensusAPI) invalid() ExecutePayloadResponse {
237237
if api.light {
238-
return ExecutePayloadResponse{Status: VALID.Status, LatestValidHash: api.les.BlockChain().CurrentHeader().Hash()}
238+
return ExecutePayloadResponse{Status: INVALID.Status, LatestValidHash: api.les.BlockChain().CurrentHeader().Hash()}
239239
}
240-
return ExecutePayloadResponse{Status: VALID.Status, LatestValidHash: api.eth.BlockChain().CurrentHeader().Hash()}
240+
return ExecutePayloadResponse{Status: INVALID.Status, LatestValidHash: api.eth.BlockChain().CurrentHeader().Hash()}
241241
}
242242

243243
// ExecutePayload creates an Eth1 block, inserts it in the chain, and returns the status of the chain.

0 commit comments

Comments
 (0)