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
Methods
Equals(ChannelFlags)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ChannelFlags other)
Parameters
other
ChannelFlagsAn object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
obj
objectThe 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
ChannelFlagsright
ChannelFlags
Returns
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[]
Returns
operator !=(ChannelFlags, ChannelFlags)
public static bool operator !=(ChannelFlags left, ChannelFlags right)
Parameters
left
ChannelFlagsright
ChannelFlags