mirror of
https://github.com/status-im/whisper.git
synced 2025-02-22 15:38:18 +00:00
cmd, contracts, eth, p2p, signer, whisper: fixed ineffectual assignments (#19869)
This commit is contained in:
parent
75f34771fb
commit
e234c0fdf9
@ -134,7 +134,7 @@ func (peer *Peer) handshake() error {
|
||||
}
|
||||
}
|
||||
|
||||
isRemotePeerLightNode, err := s.Bool()
|
||||
isRemotePeerLightNode, _ := s.Bool()
|
||||
if isRemotePeerLightNode && isLightNode && isRestrictedLightNodeConnection {
|
||||
return fmt.Errorf("peer [%x] is useless: two light client communication restricted", peer.ID())
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user