mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 14:16:44 +00:00
feat(snapshot): Close snapshot p2p protocol when using zktrie. (#239)
* Close snapshot p2p protocol when use zktrie. * trigger ci
This commit is contained in:
parent
cfbb26922f
commit
018c2cca43
1 changed files with 1 additions and 1 deletions
|
|
@ -516,7 +516,7 @@ func (s *Ethereum) BloomIndexer() *core.ChainIndexer { return s.bloomIndexer }
|
|||
// network protocols to start.
|
||||
func (s *Ethereum) Protocols() []p2p.Protocol {
|
||||
protos := eth.MakeProtocols((*ethHandler)(s.handler), s.networkID, s.ethDialCandidates)
|
||||
if s.config.SnapshotCache > 0 {
|
||||
if !s.blockchain.Config().Zktrie && s.config.SnapshotCache > 0 {
|
||||
protos = append(protos, snap.MakeProtocols((*snapHandler)(s.handler), s.snapDialCandidates)...)
|
||||
}
|
||||
return protos
|
||||
|
|
|
|||
Loading…
Reference in a new issue