mirror of
https://github.com/PeernetOfficial/core.git
synced 2026-07-23 05:07:51 +01:00
Prepare log functions for filters. Init all filter functions by assigning empty stubs. #26
This commit is contained in:
@@ -145,12 +145,8 @@ func PeerlistAdd(PublicKey *btcec.PublicKey, connections ...*Connection) (peer *
|
||||
}
|
||||
}
|
||||
|
||||
if Filters.NewPeer != nil {
|
||||
Filters.NewPeer(peer, connections[0])
|
||||
}
|
||||
if Filters.NewPeerConnection != nil {
|
||||
Filters.NewPeerConnection(peer, connections[0])
|
||||
}
|
||||
Filters.NewPeer(peer, connections[0])
|
||||
Filters.NewPeerConnection(peer, connections[0])
|
||||
|
||||
return peer, true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user