We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4771d86 commit ef3ec13Copy full SHA for ef3ec13
cmd/utils/flags.go
@@ -123,11 +123,11 @@ var (
123
Usage: "Disable snap protocol",
124
}
125
DisableDiffProtocolFlag = cli.BoolFlag{
126
- Name: "disablediffprotocol",
+ Name: "disablediffprotocol",
127
Usage: "Disable diff protocol",
128
129
EnableTrustProtocolFlag = cli.BoolFlag{
130
- Name: "enabletrustprotocol",
+ Name: "enabletrustprotocol",
131
Usage: "Enable trust protocol",
132
133
DiffSyncFlag = cli.BoolFlag{
@@ -272,9 +272,9 @@ var (
272
Usage: "The layer of tries trees that keep in memory",
273
Value: 128,
274
275
- defaultVerifyMode = ethconfig.Defaults.TriesVerifyMode
+ defaultVerifyMode = ethconfig.Defaults.TriesVerifyMode
276
TriesVerifyModeFlag = TextMarshalerFlag{
277
- Name: "tries-verify-mode",
+ Name: "tries-verify-mode",
278
Usage: `tries verify mode: "local", "full", "insecure", "none"`,
279
Value: &defaultVerifyMode,
280
core/state/statedb.go
@@ -1611,7 +1611,7 @@ func (s *StateDB) SnapToDiffLayer() ([]common.Address, []types.DiffAccount, []ty
1611
for accountHash, storage := range s.snapStorage {
1612
keys := make([]string, 0, len(storage))
1613
values := make([][]byte, 0, len(storage))
1614
- for k, _ := range storage {
+ for k := range storage {
1615
keys = append(keys, k)
1616
1617
sort.Strings(keys)
eth/handler_trust.go
@@ -2,6 +2,7 @@ package eth
2
3
import (
4
"fmt"
5
+
6
"github.com/ethereum/go-ethereum/core"
7
"github.com/ethereum/go-ethereum/eth/protocols/trust"
8
"github.com/ethereum/go-ethereum/p2p/enode"
eth/protocols/trust/protocol.go
@@ -40,7 +40,6 @@ var (
40
errMsgTooLarge = errors.New("message too long")
41
errDecode = errors.New("invalid message")
42
errInvalidMsgCode = errors.New("invalid message code")
43
- errUnexpectedMsg = errors.New("unexpected message code")
44
)
45
46
// Packet represents a p2p message in the `trust` protocol.
ethclient/ethclient.go
@@ -22,12 +22,12 @@ import (
22
"encoding/json"
23
"errors"
24
25
- "github.com/ethereum/go-ethereum/core"
26
"math/big"
27
28
"github.com/ethereum/go-ethereum"
29
"github.com/ethereum/go-ethereum/common"
30
"github.com/ethereum/go-ethereum/common/hexutil"
+ "github.com/ethereum/go-ethereum/core"
31
"github.com/ethereum/go-ethereum/core/types"
32
"github.com/ethereum/go-ethereum/rpc"
33
0 commit comments