eth: accountRangeAt remove txIndex parameter and only use last index in the latest block

This commit is contained in:
Jared Wasinger 2018-12-05 14:28:29 +00:00 committed by Guillaume Ballet
parent 89940c09c1
commit 49d152d253

View file

@ -357,7 +357,7 @@ func accountRange(st state.Trie, start *common.Address, maxResult int) (AccountR
}
//block hash or number, tx index, start address hash, max results
func (api *PrivateDebugAPI) AccountRangeAt(ctx context.Context, txIndex int, startAddr *common.Address, maxResults int) (AccountRangeResult, error) {
func (api *PrivateDebugAPI) AccountRangeAt(ctx context.Context, startAddr *common.Address, maxResults int) (AccountRangeResult, error) {
var statedb *state.StateDB = nil
var err error = nil
var block = api.eth.blockchain.CurrentBlock()