Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov committed Nov 6, 2024
1 parent 13c83cd commit 46e4da7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion core/state/dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ package state

import (
"encoding/json"
"errors"
"fmt"
"time"

Expand Down Expand Up @@ -136,7 +137,7 @@ func NewDumper(db kv.Tx, txNumsReader rawdbv3.TxNumsReader, blockNumber uint64)
}
}

var TooMuchIterations = fmt.Errorf("[rpc] Dumper: too much iterations protection triggered")
var TooMuchIterations = errors.New("[rpc] dumper: too much iterations protection triggered")

const DumperIterationsHardLimit = 10_000_000

Expand Down
4 changes: 2 additions & 2 deletions turbo/jsonrpc/debug_api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,12 +304,12 @@ func TestAccountRange(t *testing.T) {

t.Run("valid account", func(t *testing.T) {
addr := common.HexToAddress("0x537e697c7ab75a26f9ecf0ce810e3154dfcaaf55")
n := rpc.BlockNumber(1)
//n := rpc.BlockNumber(1)
//result, err := api.AccountRange(m.Ctx, rpc.BlockNumberOrHash{BlockNumber: &n}, addr[:], 10, true, true)
//require.NoError(t, err)
//require.Equal(t, 2, len(result.Accounts))
//
n = rpc.BlockNumber(7)
n := rpc.BlockNumber(7)
result, err := api.AccountRange(m.Ctx, rpc.BlockNumberOrHash{BlockNumber: &n}, addr[:], 10, true, true)
require.NoError(t, err)
require.Equal(t, 3, len(result.Accounts))
Expand Down
1 change: 0 additions & 1 deletion turbo/jsonrpc/eth_call.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ func (api *APIImpl) Call(ctx context.Context, args ethapi2.CallArgs, blockNrOrHa
header := block.HeaderNoCopy()
result, err := transactions.DoCall(ctx, engine, args, tx, blockNrOrHash, header, overrides, api.GasCap, chainConfig, stateReader, api._blockReader, api.evmCallTimeout)
if err != nil {
panic(err)
return nil, err
}

Expand Down

0 comments on commit 46e4da7

Please sign in to comment.