Skip to content

Commit

Permalink
retesteth: enable maxResults in AccountRange (#20020)
Browse files Browse the repository at this point in the history
  • Loading branch information
winsvega authored and holiman committed Sep 2, 2019
1 parent d5bd383 commit cedf8be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/geth/retesteth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cedf8be

Please sign in to comment.