diff options
author | winsvega <winsvega@mail.ru> | 2019-09-02 17:49:49 +0800 |
---|---|---|
committer | Martin Holst Swende <martin@swende.se> | 2019-09-02 17:49:49 +0800 |
commit | cedf8be4356dd6320437357979bbc5ee4bdbdd4c (patch) | |
tree | 26a7b646cab919007686d47fb5891291aa1f8fcc /cmd | |
parent | d5bd38384c1c0630d77468c12c8ad99d57ac2229 (diff) | |
download | go-tangerine-cedf8be4356dd6320437357979bbc5ee4bdbdd4c.tar go-tangerine-cedf8be4356dd6320437357979bbc5ee4bdbdd4c.tar.gz go-tangerine-cedf8be4356dd6320437357979bbc5ee4bdbdd4c.tar.bz2 go-tangerine-cedf8be4356dd6320437357979bbc5ee4bdbdd4c.tar.lz go-tangerine-cedf8be4356dd6320437357979bbc5ee4bdbdd4c.tar.xz go-tangerine-cedf8be4356dd6320437357979bbc5ee4bdbdd4c.tar.zst go-tangerine-cedf8be4356dd6320437357979bbc5ee4bdbdd4c.zip |
retesteth: enable maxResults in AccountRange (#20020)
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/geth/retesteth.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/geth/retesteth.go b/cmd/geth/retesteth.go index bda19324d..9469c9f5f 100644 --- a/cmd/geth/retesteth.go +++ b/cmd/geth/retesteth.go @@ -679,7 +679,7 @@ func (api *RetestethAPI) AccountRange(ctx context.Context, } it := trie.NewIterator(accountTrie.NodeIterator(common.BigToHash((*big.Int)(addressHash)).Bytes())) result := AccountRangeResult{AddressMap: make(map[common.Hash]common.Address)} - for i := 0; /*i < int(maxResults) && */ it.Next(); i++ { + for i := 0; i < int(maxResults) && it.Next(); i++ { if preimage := accountTrie.GetKey(it.Key); preimage != nil { result.AddressMap[common.BytesToHash(it.Key)] = common.BytesToAddress(preimage) //fmt.Printf("%x: %x\n", it.Key, preimage) |