Table of Contents

Struct ChannelFlags

Namespace
NLightning.Common.Types
Assembly
NLightning.Common.dll

Only the least-significant bit of channel_flags is currently defined: announce_channel. This indicates whether the initiator of the funding flow wishes to advertise this channel publicly to the network

public readonly struct ChannelFlags
Inherited Members

Constructors

ChannelFlags(bool)

public ChannelFlags(bool announceChannel)

Parameters

announceChannel bool

ChannelFlags(byte)

public ChannelFlags(byte value)

Parameters

value byte

Fields

ANNOUNCE_CHANNEL

public readonly bool ANNOUNCE_CHANNEL

Field Value

bool

Methods

DeserializeAsync(Stream)

public static Task<ChannelFlags> DeserializeAsync(Stream stream)

Parameters

stream Stream

Returns

Task<ChannelFlags>

SerializeAsync(Stream)

public ValueTask SerializeAsync(Stream stream)

Parameters

stream Stream

Returns

ValueTask

Operators

implicit operator byte(ChannelFlags)

public static implicit operator byte(ChannelFlags c)

Parameters

c ChannelFlags

Returns

byte

implicit operator byte[](ChannelFlags)

public static implicit operator byte[](ChannelFlags c)

Parameters

c ChannelFlags

Returns

byte[]

implicit operator ChannelFlags(byte)

public static implicit operator ChannelFlags(byte value)

Parameters

value byte

Returns

ChannelFlags

implicit operator ChannelFlags(byte[])

public static implicit operator ChannelFlags(byte[] value)

Parameters

value byte[]

Returns

ChannelFlags