mirror of
https://github.com/PeernetOfficial/core.git
synced 2026-07-19 19:47:49 +01:00
New filter DHTSearchStatus for debug purposes.
Various minor improvements and fixes. New high-level FindNode and AsyncSearch functions.
This commit is contained in:
@@ -69,6 +69,11 @@ func (c *Connection) IsPortForward() bool {
|
||||
return c.PortExternal > 0
|
||||
}
|
||||
|
||||
// IsVirtual returns true if the peer has not been connected yet. This is the case if another peer responds with peer details, and that peer shall be contacted.
|
||||
func (peer *PeerInfo) IsVirtual() bool {
|
||||
return peer.isVirtual
|
||||
}
|
||||
|
||||
// GetConnections returns the list of connections
|
||||
func (peer *PeerInfo) GetConnections(active bool) (connections []*Connection) {
|
||||
peer.RLock()
|
||||
|
||||
Reference in New Issue
Block a user