mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
rpc: Rename AccountRangeAt to AccountRange
This commit is contained in:
parent
70de8fb0c1
commit
1783c3bf0c
3 changed files with 6 additions and 6 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue