Move comment to where it belongs.

This commit is contained in:
David Hill 2015-11-10 13:20:29 -05:00
parent 21d11e2809
commit 5016675d40
2 changed files with 6 additions and 4 deletions

View file

@ -1576,10 +1576,6 @@ out:
}
case *wire.MsgAlert:
// Note: 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.
if p.cfg.Listeners.OnAlert != nil {
p.cfg.Listeners.OnAlert(p, msg)
}

View file

@ -1387,6 +1387,12 @@ func newPeerConfig(sp *serverPeer) *peer.Config {
OnAddr: sp.OnAddr,
OnRead: sp.OnRead,
OnWrite: sp.OnWrite,
// Note: 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.
OnAlert: nil,
},
NewestBlock: sp.server.db.NewestSha,
BestLocalAddress: sp.server.addrManager.GetBestLocalAddress,