diff --git a/eth/catalyst/otel.go b/eth/catalyst/otel.go index 170c5bde95..c08092e1e1 100644 --- a/eth/catalyst/otel.go +++ b/eth/catalyst/otel.go @@ -26,7 +26,6 @@ var ( // initEngineTelemetry initializes the OpenTelemetry tracing for the engine API. func initEngineTelemetry() { - // TODO(jrhea): allow caller to provide init context once lifecycle plumbing exists. ctx, cancel := context.WithTimeout(context.Background(), time.Second) defer cancel() diff --git a/eth/catalyst/simulated_beacon.go b/eth/catalyst/simulated_beacon.go index 041d5b9b9d..4b014cdd5f 100644 --- a/eth/catalyst/simulated_beacon.go +++ b/eth/catalyst/simulated_beacon.go @@ -255,7 +255,7 @@ func (c *SimulatedBeacon) sealBlock(withdrawals []*types.Withdrawal, timestamp u requests = envelope.Requests } - method := newPayloadV1 + var method newPayloadMethod switch version { case engine.PayloadV1: method = newPayloadV1