Table of Contents

Struct ChannelFlags

Namespace
NLightning.Domain.ValueObjects
Assembly
NLightning.Domain.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 : IValueObject, IEquatable<ChannelFlags>
Implements
Inherited Members

Constructors

ChannelFlags(ChannelFlag)

public ChannelFlags(ChannelFlag value)

Parameters

value ChannelFlag

ChannelFlags(byte)

public ChannelFlags(byte value)

Parameters

value byte

Properties

AnnounceChannel

public bool AnnounceChannel { get; }

Property Value

bool

Methods

Equals(ChannelFlags)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(ChannelFlags other)

Parameters

other ChannelFlags

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

Operators

operator ==(ChannelFlags, ChannelFlags)

public static bool operator ==(ChannelFlags left, ChannelFlags right)

Parameters

left ChannelFlags
right ChannelFlags

Returns

bool

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

operator !=(ChannelFlags, ChannelFlags)

public static bool operator !=(ChannelFlags left, ChannelFlags right)

Parameters

left ChannelFlags
right ChannelFlags

Returns

bool