Class PeerModel
- Namespace
- NLightning.Domain.Node.Models
- Assembly
- NLightning.Domain.dll
- Inheritance
-
PeerModel
- Inherited Members
-
Constructors
PeerModel(CompactPubKey, string, uint, string)
public PeerModel(CompactPubKey nodeId, string host, uint port, string type)
Parameters
nodeId CompactPubKey
host string
port uint
type string
Properties
Channels
public ICollection<ChannelModel>? Channels { get; set; }
Property Value
- ICollection<ChannelModel>
Features
public FeatureSet Features { get; }
Property Value
- FeatureSet
Host
public string Host { get; }
Property Value
- string
LastSeenAt
public DateTime LastSeenAt { get; set; }
Property Value
- DateTime
NegotiatedFeatures
public FeatureOptions NegotiatedFeatures { get; }
Property Value
- FeatureOptions
NodeId
public CompactPubKey NodeId { get; }
Property Value
- CompactPubKey
PeerAddressInfo
public PeerAddressInfo PeerAddressInfo { get; }
Property Value
- PeerAddressInfo
Port
public uint Port { get; }
Property Value
- uint
Type
public string Type { get; }
Property Value
- string
Methods
SetPeerService(IPeerService)
public void SetPeerService(IPeerService peerService)
Parameters
peerService IPeerService
TryGetPeerService(out IPeerService)
public bool TryGetPeerService(out IPeerService peerService)
Parameters
peerService IPeerService
Returns
- bool