From ea9ac890abf35679fd60ba1cf4d58c929b964761 Mon Sep 17 00:00:00 2001 From: Mark Holt Date: Sat, 30 Nov 2024 13:56:48 +0000 Subject: [PATCH] fix lint --- eth/stagedsync/exec3.go | 2 +- turbo/stages/chain_makers_test.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/eth/stagedsync/exec3.go b/eth/stagedsync/exec3.go index 308f4c6cbf8..c3017c1ab1c 100644 --- a/eth/stagedsync/exec3.go +++ b/eth/stagedsync/exec3.go @@ -629,7 +629,7 @@ Loop: logger.Error(fmt.Sprintf("[%s] Wrong trie root of block %d: %x, expected (from header): %x. Block hash: %x", execStage.LogPrefix(), header.Number.Uint64(), rh, header.Root.Bytes(), header.Hash())) return errors.New("wrong trie root") } - + ts += time.Since(start) aggTx.RestrictSubsetFileDeletions(false) executor.domains().SavePastChangesetAccumulator(b.Hash(), blockNum, changeset) diff --git a/turbo/stages/chain_makers_test.go b/turbo/stages/chain_makers_test.go index dbeac1e31c9..e33f34ef5dd 100644 --- a/turbo/stages/chain_makers_test.go +++ b/turbo/stages/chain_makers_test.go @@ -119,21 +119,21 @@ func TestGenerateChain(t *testing.T) { t.Errorf("wrong block number: %d", current(m, tx).Number()) } balance, err := st.GetBalance(addr1) - if err!=nil { + if err != nil { t.Error(err) } if !uint256.NewInt(989000).Eq(balance) { t.Errorf("wrong balance of addr1: %s", balance) } balance, err = st.GetBalance(addr2) - if err!=nil { + if err != nil { t.Error(err) } if !uint256.NewInt(10000).Eq(balance) { t.Errorf("wrong balance of addr2: %s", balance) } balance, err = st.GetBalance(addr3) - if err!=nil { + if err != nil { t.Error(err) } if fmt.Sprintf("%s", balance) != "19687500000000001000" { //nolint