Skip to content

Commit ef3ec13

Browse files
committed
fix lint error
1 parent 4771d86 commit ef3ec13

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

cmd/utils/flags.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ var (
123123
Usage: "Disable snap protocol",
124124
}
125125
DisableDiffProtocolFlag = cli.BoolFlag{
126-
Name: "disablediffprotocol",
126+
Name: "disablediffprotocol",
127127
Usage: "Disable diff protocol",
128128
}
129129
EnableTrustProtocolFlag = cli.BoolFlag{
130-
Name: "enabletrustprotocol",
130+
Name: "enabletrustprotocol",
131131
Usage: "Enable trust protocol",
132132
}
133133
DiffSyncFlag = cli.BoolFlag{
@@ -272,9 +272,9 @@ var (
272272
Usage: "The layer of tries trees that keep in memory",
273273
Value: 128,
274274
}
275-
defaultVerifyMode = ethconfig.Defaults.TriesVerifyMode
275+
defaultVerifyMode = ethconfig.Defaults.TriesVerifyMode
276276
TriesVerifyModeFlag = TextMarshalerFlag{
277-
Name: "tries-verify-mode",
277+
Name: "tries-verify-mode",
278278
Usage: `tries verify mode: "local", "full", "insecure", "none"`,
279279
Value: &defaultVerifyMode,
280280
}

core/state/statedb.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1611,7 +1611,7 @@ func (s *StateDB) SnapToDiffLayer() ([]common.Address, []types.DiffAccount, []ty
16111611
for accountHash, storage := range s.snapStorage {
16121612
keys := make([]string, 0, len(storage))
16131613
values := make([][]byte, 0, len(storage))
1614-
for k, _ := range storage {
1614+
for k := range storage {
16151615
keys = append(keys, k)
16161616
}
16171617
sort.Strings(keys)

eth/handler_trust.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package eth
22

33
import (
44
"fmt"
5+
56
"github.com/ethereum/go-ethereum/core"
67
"github.com/ethereum/go-ethereum/eth/protocols/trust"
78
"github.com/ethereum/go-ethereum/p2p/enode"

eth/protocols/trust/protocol.go

-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ var (
4040
errMsgTooLarge = errors.New("message too long")
4141
errDecode = errors.New("invalid message")
4242
errInvalidMsgCode = errors.New("invalid message code")
43-
errUnexpectedMsg = errors.New("unexpected message code")
4443
)
4544

4645
// Packet represents a p2p message in the `trust` protocol.

ethclient/ethclient.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ import (
2222
"encoding/json"
2323
"errors"
2424
"fmt"
25-
"github.com/ethereum/go-ethereum/core"
2625
"math/big"
2726

2827
"github.com/ethereum/go-ethereum"
2928
"github.com/ethereum/go-ethereum/common"
3029
"github.com/ethereum/go-ethereum/common/hexutil"
30+
"github.com/ethereum/go-ethereum/core"
3131
"github.com/ethereum/go-ethereum/core/types"
3232
"github.com/ethereum/go-ethereum/rpc"
3333
)

0 commit comments

Comments
 (0)