mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 01:43:47 +00:00
whisper: revert the special libp2p packet code
handshake now works as it should, no need for custom protocol messages.
This commit is contained in:
parent
489cc699e8
commit
8148e9fea4
2 changed files with 0 additions and 2 deletions
|
|
@ -48,7 +48,6 @@ const (
|
|||
messagesCode = 1 // normal whisper message
|
||||
powRequirementCode = 2 // PoW requirement
|
||||
bloomFilterExCode = 3 // bloom filter exchange
|
||||
lp2pPeerCode = 125 // libp2p-based peer exchange protocol
|
||||
p2pRequestCode = 126 // peer-to-peer message, used by Dapp protocol
|
||||
p2pMessageCode = 127 // peer-to-peer message (to be consumed by the peer, but not forwarded any further)
|
||||
NumberOfMessageCodes = 128
|
||||
|
|
|
|||
|
|
@ -724,7 +724,6 @@ func (whisper *Whisper) runMessageLoop(p Peer, rw p2p.MsgReadWriter) error {
|
|||
return errors.New("invalid bloom filter exchange message")
|
||||
}
|
||||
p.setBloomFilter(bloom)
|
||||
case lp2pPeerCode:
|
||||
case p2pMessageCode:
|
||||
// peer-to-peer message, sent directly to peer bypassing PoW checks, etc.
|
||||
// this message is not supposed to be forwarded to other peers, and
|
||||
|
|
|
|||
Loading…
Reference in a new issue