Intentionally ignore alert messages.
Currently, the reference client bans peers that send alerts not signed with its key. We could verify against their key, but since the reference client developers are currently unwilling to support other implementations' alert messages, we will not relay theirs.
This commit is contained in:
parent
6a6e8dddf0
commit
741797c601
1 changed files with 8 additions and 1 deletions
9
peer.go
9
peer.go
|
@ -1468,7 +1468,14 @@ out:
|
|||
p.handlePongMsg(msg)
|
||||
|
||||
case *btcwire.MsgAlert:
|
||||
p.server.BroadcastMessage(msg, p)
|
||||
// Intentionally ignore alert messages.
|
||||
//
|
||||
// The reference client currently bans peers that send
|
||||
// alerts not signed with its key. We could verify
|
||||
// against their key, but since the reference client
|
||||
// is currently unwilling to support other
|
||||
// implementions' alert messages, we will not relay
|
||||
// theirs.
|
||||
|
||||
case *btcwire.MsgMemPool:
|
||||
p.handleMemPoolMsg(msg)
|
||||
|
|
Loading…
Add table
Reference in a new issue