From 01dd019c5e4a22afd13e48e873bd37697115396d Mon Sep 17 00:00:00 2001 From: Jerry Date: Mon, 1 May 2023 21:23:54 -0700 Subject: [PATCH] Fit linters --- core/state_processor.go | 2 +- eth/tracers/api.go | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/core/state_processor.go b/core/state_processor.go index 09422de357..fac921cd2f 100644 --- a/core/state_processor.go +++ b/core/state_processor.go @@ -88,7 +88,7 @@ func (p *StateProcessor) Process(block *types.Block, statedb *state.StateDB, cfg return nil, nil, 0, fmt.Errorf("could not apply tx %d [%v]: %w", i, tx.Hash().Hex(), err) } statedb.Prepare(tx.Hash(), i) - receipt, err := applyTransaction(msg, p.config, p.bc, nil, gp, statedb, blockNumber, blockHash, tx, usedGas, vmenv, nil) + receipt, err := applyTransaction(msg, p.config, p.bc, nil, gp, statedb, blockNumber, blockHash, tx, usedGas, vmenv, interruptCtx) if err != nil { return nil, nil, 0, fmt.Errorf("could not apply tx %d [%v]: %w", i, tx.Hash().Hex(), err) } diff --git a/eth/tracers/api.go b/eth/tracers/api.go index ea4bb77ee4..54f624b0a8 100644 --- a/eth/tracers/api.go +++ b/eth/tracers/api.go @@ -826,6 +826,7 @@ func (api *API) traceBlock(ctx context.Context, block *types.Block, config *Trac if stateSyncPresent && i == len(txs)-1 { if *config.BorTraceEnabled { callmsg := prepareCallMessage(msg) + // nolint : contextcheck if _, err := statefull.ApplyBorMessage(*vmenv, callmsg); err != nil { failed = err break @@ -834,6 +835,7 @@ func (api *API) traceBlock(ctx context.Context, block *types.Block, config *Trac break } } else { + // nolint : contextcheck if _, err := core.ApplyMessage(vmenv, msg, new(core.GasPool).AddGas(msg.Gas()), context.Background()); err != nil { failed = err break @@ -844,7 +846,7 @@ func (api *API) traceBlock(ctx context.Context, block *types.Block, config *Trac } } else { coinbaseBalance := statedb.GetBalance(blockCtx.Coinbase) - + // nolint : contextcheck result, err := core.ApplyMessageNoFeeBurnOrTip(vmenv, msg, new(core.GasPool).AddGas(msg.Gas()), context.Background()) if err != nil {