diff --git a/accounts/abi/bind/backends/simulated_test.go b/accounts/abi/bind/backends/simulated_test.go index 01683e412a0e1a7fd7d3b59a7065d44eb2c5a76c..4eff446e6a8a314c980c83399df9c2935e1ceed3 100644 --- a/accounts/abi/bind/backends/simulated_test.go +++ b/accounts/abi/bind/backends/simulated_test.go @@ -169,7 +169,7 @@ func TestNewSimulatedBackend_AdjustTimeFail(t *testing.T) { if err != nil { t.Errorf("could not sign tx: %v", err) } - sim.SendTransaction(context.Background(), signedTx) + sim.SendTransaction(context.Background(), signedTx) //nolint:errcheck // AdjustTime should fail on non-empty block if err := sim.AdjustTime(time.Second); err == nil { t.Error("Expected adjust time to error on non-empty block") @@ -192,7 +192,7 @@ func TestNewSimulatedBackend_AdjustTimeFail(t *testing.T) { if err != nil { t.Errorf("could not sign tx: %v", err) } - sim.SendTransaction(context.Background(), signedTx2) + sim.SendTransaction(context.Background(), signedTx2) //nolint:errcheck sim.Commit() newTime = sim.pendingBlock.Time() if newTime-prevTime >= uint64(time.Minute.Seconds()) { diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go index 6a46a329d25b3e1e88a5aa02a09e0b3947a56a1c..496bd81f54648e574a1a771a21a0f776e97a28cf 100644 --- a/eth/downloader/downloader.go +++ b/eth/downloader/downloader.go @@ -252,10 +252,10 @@ func New(checkpoint uint64, stateDB *ethdb.ObjectDatabase, mux *event.TypeMux, c mode: uint32(StagedSync), stateDB: stateDB, mux: mux, - queue: newQueue(blockCacheMaxItems, blockCacheInitialItems), - peers: newPeerSet(), - rttEstimate: uint64(rttMaxEstimate), - rttConfidence: uint64(1000000), + queue: newQueue(blockCacheMaxItems, blockCacheInitialItems), + peers: newPeerSet(), + rttEstimate: uint64(rttMaxEstimate), + rttConfidence: uint64(1000000), chainConfig: chainConfig, blockchain: chain, lightchain: lightchain, diff --git a/eth/tracers/tracers_test.go b/eth/tracers/tracers_test.go index bcd290975e3273cbeb482d4485b02a4771e34e25..9e294f511c4c8ffdb87f1bf4f9ff6d2341ccbfca 100644 --- a/eth/tracers/tracers_test.go +++ b/eth/tracers/tracers_test.go @@ -302,12 +302,12 @@ func jsonEqual(x, y interface{}) bool { xTrace := new(callTrace) yTrace := new(callTrace) if xj, err := json.Marshal(x); err == nil { - json.Unmarshal(xj, xTrace) + json.Unmarshal(xj, xTrace) //nolint: errcheck } else { return false } if yj, err := json.Marshal(y); err == nil { - json.Unmarshal(yj, yTrace) + json.Unmarshal(yj, yTrace) //nolint: errcheck } else { return false }