mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Revert "eth: when snap is complaining for missing eth, be verbose about the details (#28249)"
This reverts commit 42fdae7d11.
This commit is contained in:
parent
da34ca641c
commit
96d19455c0
2 changed files with 2 additions and 3 deletions
|
|
@ -462,7 +462,7 @@ func (h *handler) runSnapExtension(peer *snap.Peer, handler snap.Handler) error
|
|||
snap.EgressRegistrationErrorMeter.Mark(1)
|
||||
}
|
||||
}
|
||||
peer.Log().Debug("Snapshot extension registration failed", "err", err)
|
||||
peer.Log().Warn("Snapshot extension registration failed", "err", err)
|
||||
return err
|
||||
}
|
||||
return handler(peer)
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ package eth
|
|||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"math/big"
|
||||
"sync"
|
||||
|
||||
|
|
@ -75,7 +74,7 @@ func (ps *peerSet) registerSnapExtension(peer *snap.Peer) error {
|
|||
// Reject the peer if it advertises `snap` without `eth` as `snap` is only a
|
||||
// satellite protocol meaningful with the chain selection of `eth`
|
||||
if !peer.RunningCap(eth.ProtocolName, eth.ProtocolVersions) {
|
||||
return fmt.Errorf("%w: have %v", errSnapWithoutEth, peer.Caps())
|
||||
return errSnapWithoutEth
|
||||
}
|
||||
// Ensure nobody can double connect
|
||||
ps.lock.Lock()
|
||||
|
|
|
|||
Loading…
Reference in a new issue