From 1783c3bf0cf2cd33d6fe16e417539501f2200414 Mon Sep 17 00:00:00 2001 From: Guillaume Ballet Date: Mon, 8 Jul 2019 14:40:42 +0200 Subject: [PATCH] rpc: Rename AccountRangeAt to AccountRange --- cmd/geth/retesteth.go | 4 ++-- eth/api.go | 4 ++-- eth/api_test.go | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/geth/retesteth.go b/cmd/geth/retesteth.go index 6d5763f887..0615f446fc 100644 --- a/cmd/geth/retesteth.go +++ b/cmd/geth/retesteth.go @@ -86,7 +86,7 @@ type RetestethEthAPI interface { } type RetestethDebugAPI interface { - AccountRangeAt(ctx context.Context, + AccountRange(ctx context.Context, blockHashOrNumber *math.HexOrDecimal256, txIndex uint64, addressHash *math.HexOrDecimal256, maxResults uint64, ) (AccountRangeResult, error) @@ -604,7 +604,7 @@ func (api *RetestethAPI) GetBlockByNumber(ctx context.Context, blockNr math.HexO return nil, fmt.Errorf("block %d not found", blockNr) } -func (api *RetestethAPI) AccountRangeAt(ctx context.Context, +func (api *RetestethAPI) AccountRange(ctx context.Context, blockHashOrNumber *math.HexOrDecimal256, txIndex uint64, addressHash *math.HexOrDecimal256, maxResults uint64, ) (AccountRangeResult, error) { diff --git a/eth/api.go b/eth/api.go index 0340aea655..70cd29fefa 100644 --- a/eth/api.go +++ b/eth/api.go @@ -371,8 +371,8 @@ const ( AccountRangeMaxResults = 256 ) -// AccountRangeAt enumerates all accounts in the latest state -func (api *PrivateDebugAPI) AccountRangeAt(ctx context.Context, start *common.Hash, maxResults int) (AccountRangeResult, error) { +// AccountRange enumerates all accounts in the latest state +func (api *PrivateDebugAPI) AccountRange(ctx context.Context, start *common.Hash, maxResults int) (AccountRangeResult, error) { var statedb *state.StateDB var err error block := api.eth.blockchain.CurrentBlock() diff --git a/eth/api_test.go b/eth/api_test.go index 1ea9780c8d..6adc1c2915 100644 --- a/eth/api_test.go +++ b/eth/api_test.go @@ -51,7 +51,7 @@ func accountRangeTest(t *testing.T, trie *state.Trie, statedb *state.StateDB, st return result } -func TestAccountRangeAt(t *testing.T) { +func TestAccountRange(t *testing.T) { var ( statedb = state.NewDatabase(rawdb.NewMemoryDatabase()) state, _ = state.New(common.Hash{}, statedb) @@ -102,7 +102,7 @@ func TestAccountRangeAt(t *testing.T) { } } -func TestEmptyAccountRangeAt(t *testing.T) { +func TestEmptyAccountRange(t *testing.T) { var ( statedb = state.NewDatabase(rawdb.NewMemoryDatabase()) state, _ = state.New(common.Hash{}, statedb)