diff --git a/eth/catalyst/api.go b/eth/catalyst/api.go index aa9702c0334e..2b23a8b035c0 100644 --- a/eth/catalyst/api.go +++ b/eth/catalyst/api.go @@ -301,7 +301,7 @@ func (api *ConsensusAPI) ForkchoiceUpdatedV1(update beacon.ForkchoiceStateV1, pa payload, err := api.eth.Miner().BuildPayload(args) if err != nil { log.Error("Failed to build payload", "err", err) - return valid(nil), beacon.InvalidPayloadAttributes.With(err) + return beacon.STATUS_INVALID, beacon.InvalidPayloadAttributes.With(err) } id := computePayloadId(update.HeadBlockHash, payloadAttributes) api.localBlocks.put(id, payload) diff --git a/miner/worker.go b/miner/worker.go index fdb3b4a65aa3..afc6ec5a7876 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -1102,7 +1102,7 @@ func (w *worker) generateWork(genParams *generateParams) (*types.Block, *big.Int work.state.Prepare(tx.Hash(), work.tcount) _, err := w.commitTransaction(work, tx) if err != nil { - return nil, nil, fmt.Errorf("failed to force-include tx: %s type: %d sender: %s nonce: %d", tx.Hash(), tx.Type(), from, tx.Nonce()) + return nil, nil, fmt.Errorf("failed to force-include tx: %s type: %d sender: %s nonce: %d, err: %w", tx.Hash(), tx.Type(), from, tx.Nonce(), err) } work.tcount++ }