eth: add debug_accountRange (#17438)

This adds the debug_accountRange method which returns all accounts in
the state for a given block and transaction index.
This commit is contained in:
jwasinger
2019-07-13 07:48:55 -06:00
committed by Felix Lange
parent 49a7ee460e
commit 6bd896a97f
3 changed files with 225 additions and 2 deletions

View File

@ -86,7 +86,7 @@ type RetestethEthAPI interface {
}
type RetestethDebugAPI interface {
AccountRangeAt(ctx context.Context,
AccountRange(ctx context.Context,
blockHashOrNumber *math.HexOrDecimal256, txIndex uint64,
addressHash *math.HexOrDecimal256, maxResults uint64,
) (AccountRangeResult, error)
@ -604,7 +604,7 @@ func (api *RetestethAPI) GetBlockByNumber(ctx context.Context, blockNr math.HexO
return nil, fmt.Errorf("block %d not found", blockNr)
}
func (api *RetestethAPI) AccountRangeAt(ctx context.Context,
func (api *RetestethAPI) AccountRange(ctx context.Context,
blockHashOrNumber *math.HexOrDecimal256, txIndex uint64,
addressHash *math.HexOrDecimal256, maxResults uint64,
) (AccountRangeResult, error) {