Skip to content

Commit cedf8be

Browse files
winsvegaholiman
authored andcommitted
retesteth: enable maxResults in AccountRange (#20020)
1 parent d5bd383 commit cedf8be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/geth/retesteth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ func (api *RetestethAPI) AccountRange(ctx context.Context,
679679
}
680680
it := trie.NewIterator(accountTrie.NodeIterator(common.BigToHash((*big.Int)(addressHash)).Bytes()))
681681
result := AccountRangeResult{AddressMap: make(map[common.Hash]common.Address)}
682-
for i := 0; /*i < int(maxResults) && */ it.Next(); i++ {
682+
for i := 0; i < int(maxResults) && it.Next(); i++ {
683683
if preimage := accountTrie.GetKey(it.Key); preimage != nil {
684684
result.AddressMap[common.BytesToHash(it.Key)] = common.BytesToAddress(preimage)
685685
//fmt.Printf("%x: %x\n", it.Key, preimage)

0 commit comments

Comments
 (0)