feature: remove diff protocol registration (#1486)
This commit is contained in:
parent
bbd4e9252f
commit
cbbe7de6d3
@ -140,9 +140,8 @@ var (
|
||||
}
|
||||
|
||||
DiffSyncFlag = cli.BoolFlag{
|
||||
Name: "diffsync",
|
||||
Usage: "Enable diffy sync, Please note that enable diffsync will improve the syncing speed, " +
|
||||
"but will degrade the security to light client level",
|
||||
Name: "diffsync",
|
||||
Usage: "warn: diff sync has been deprecated, the flag will be removed in the future",
|
||||
}
|
||||
PipeCommitFlag = cli.BoolFlag{
|
||||
Name: "pipecommit",
|
||||
|
@ -45,7 +45,6 @@ import (
|
||||
"github.com/ethereum/go-ethereum/eth/filters"
|
||||
"github.com/ethereum/go-ethereum/eth/gasprice"
|
||||
"github.com/ethereum/go-ethereum/eth/protocols/bsc"
|
||||
"github.com/ethereum/go-ethereum/eth/protocols/diff"
|
||||
"github.com/ethereum/go-ethereum/eth/protocols/eth"
|
||||
"github.com/ethereum/go-ethereum/eth/protocols/snap"
|
||||
"github.com/ethereum/go-ethereum/eth/protocols/trust"
|
||||
@ -619,9 +618,9 @@ func (s *Ethereum) Protocols() []p2p.Protocol {
|
||||
protos = append(protos, snap.MakeProtocols((*snapHandler)(s.handler), s.snapDialCandidates)...)
|
||||
}
|
||||
// diff protocol can still open without snap protocol
|
||||
if !s.config.DisableDiffProtocol {
|
||||
protos = append(protos, diff.MakeProtocols((*diffHandler)(s.handler), s.snapDialCandidates)...)
|
||||
}
|
||||
// if !s.config.DisableDiffProtocol {
|
||||
// protos = append(protos, diff.MakeProtocols((*diffHandler)(s.handler), s.snapDialCandidates)...)
|
||||
// }
|
||||
if s.config.EnableTrustProtocol {
|
||||
protos = append(protos, trust.MakeProtocols((*trustHandler)(s.handler), s.snapDialCandidates)...)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user