Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mh0lt committed Nov 30, 2024
1 parent d239074 commit ea9ac89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion eth/stagedsync/exec3.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions turbo/stages/chain_makers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ea9ac89

Please sign in to comment.