Skip to content

Commit 5d7c11a

Browse files
authored
Merge pull request #329 from yyforyongyu/fix-OnAlert
neutrino: remove deprecated method `OnAlert`
2 parents 9bf820e + 8005847 commit 5d7c11a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

neutrino.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1505,12 +1505,6 @@ func NewPeerConfig(sp *ServerPeer) *peer.Config {
15051505
OnAddrV2: sp.OnAddrV2,
15061506
OnRead: sp.OnRead,
15071507
OnWrite: sp.OnWrite,
1508-
1509-
// Note: The reference client currently bans peers that send alerts
1510-
// not signed with its key. We could verify against their key, but
1511-
// since the reference client is currently unwilling to support
1512-
// other implementations' alert messages, we will not relay theirs.
1513-
OnAlert: nil,
15141508
},
15151509
NewestBlock: sp.newestBlock,
15161510
HostToNetAddress: sp.server.addrManager.HostToNetAddress,

0 commit comments

Comments
 (0)