aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwinsvega <winsvega@mail.ru>2019-09-02 17:49:49 +0800
committerMartin Holst Swende <martin@swende.se>2019-09-02 17:49:49 +0800
commitcedf8be4356dd6320437357979bbc5ee4bdbdd4c (patch)
tree26a7b646cab919007686d47fb5891291aa1f8fcc
parentd5bd38384c1c0630d77468c12c8ad99d57ac2229 (diff)
downloadgo-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)
-rw-r--r--cmd/geth/retesteth.go2
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)