From cedf8be4356dd6320437357979bbc5ee4bdbdd4c Mon Sep 17 00:00:00 2001
From: winsvega <winsvega@mail.ru>
Date: Mon, 2 Sep 2019 12:49:49 +0300
Subject: [PATCH] retesteth: enable maxResults in AccountRange (#20020)

---
 cmd/geth/retesteth.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)
-- 
GitLab