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
Methods
DeserializeAsync(Stream)
public static Task<ChannelFlags> DeserializeAsync(Stream stream)
Parameters
stream
Stream
Returns
SerializeAsync(Stream)
public ValueTask SerializeAsync(Stream stream)
Parameters
stream
Stream
Returns
Operators
implicit operator byte(ChannelFlags)
public static implicit operator byte(ChannelFlags c)
Parameters
Returns
implicit operator byte[](ChannelFlags)
public static implicit operator byte[](ChannelFlags c)
Parameters
Returns
- byte[]
implicit operator ChannelFlags(byte)
public static implicit operator ChannelFlags(byte value)
Parameters
value
byte
Returns
implicit operator ChannelFlags(byte[])
public static implicit operator ChannelFlags(byte[] value)
Parameters
value
byte[]