eth: fix linter issue

This commit is contained in:
Guillaume Ballet 2018-12-07 10:12:00 +01:00
parent a823ef26df
commit f70beaf822

View file

@ -28,13 +28,13 @@ import (
"strings" "strings"
"time" "time"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/core" "github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/core/rawdb" "github.com/ethereum/go-ethereum/core/rawdb"
"github.com/ethereum/go-ethereum/core/state" "github.com/ethereum/go-ethereum/core/state"
"github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/internal/ethapi" "github.com/ethereum/go-ethereum/internal/ethapi"
"github.com/ethereum/go-ethereum/rlp" "github.com/ethereum/go-ethereum/rlp"
"github.com/ethereum/go-ethereum/rpc" "github.com/ethereum/go-ethereum/rpc"
@ -336,10 +336,10 @@ func (api *PrivateDebugAPI) GetBadBlocks(ctx context.Context) ([]*BadBlockArgs,
} }
type AccountRangeResult struct { type AccountRangeResult struct {
Addresses []common.Address `json:"addresses"` Addresses []common.Address `json:"addresses"`
Next common.Address `json:"next"` Next common.Address `json:"next"`
Preimages []common.Hash `json:"preimages"` Preimages []common.Hash `json:"preimages"`
NextPreimage common.Hash `json:"nextPreimage"` NextPreimage common.Hash `json:"nextPreimage"`
} }
func accountRange(st state.Trie, start *common.Address, maxResult int) (AccountRangeResult, error) { func accountRange(st state.Trie, start *common.Address, maxResult int) (AccountRangeResult, error) {