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:
David Hill 2015-01-26 14:59:00 -05:00
parent 6a6e8dddf0
commit 741797c601

View file

@ -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)