Skip to content

Commit

Permalink
Intentionally ignore alert messages.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dajohi committed Jan 28, 2015
1 parent 6a6e8dd commit 741797c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 741797c

Please sign in to comment.