Move comment to where it belongs.
This commit is contained in:
parent
21d11e2809
commit
5016675d40
2 changed files with 6 additions and 4 deletions
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue