DotNetLightning


Peer Type

Record fields

Record Field Description

ChannelEncryptor

Full Usage: ChannelEncryptor

Field type: PeerChannelEncryptor
Field type: PeerChannelEncryptor

IsOutBound

Full Usage: IsOutBound

Field type: bool
Field type: bool

SyncStatus

Full Usage: SyncStatus

Field type: InitSyncTracker
Field type: InitSyncTracker

TheirFeatures

Full Usage: TheirFeatures

Field type: FeatureBits option
Field type: FeatureBits option

TheirNodeId

Full Usage: TheirNodeId

Field type: NodeId option
Field type: NodeId option

Instance members

Instance member Description

this.ShouldForwardChannel

Full Usage: this.ShouldForwardChannel

Parameters:
Returns: bool

Returns true if the channel announcements/updates for the given channel should be Forwarded to this peer. If we are sending our routing table to this peer and we have not yet sent channel announceents/updates for the given channel_id then we will send it when we get to that point and we shouldn't send it yet to avoid sending

channelId : ChannelId
Returns: bool

Static members

Static member Description

Peer.CreateInbound(ourNodeSecret)

Full Usage: Peer.CreateInbound(ourNodeSecret)

Parameters:
    ourNodeSecret : Key

Returns: Peer
ourNodeSecret : Key
Returns: Peer

Peer.CreateOutbound(theirNodeId, ourNodeSecret)

Full Usage: Peer.CreateOutbound(theirNodeId, ourNodeSecret)

Parameters:
Returns: Peer
theirNodeId : NodeId
ourNodeSecret : Key
Returns: Peer