Class NetworksTlv
- Namespace
- NLightning.Common.TLVs
- Assembly
- NLightning.Common.dll
Networks TLV.
public class NetworksTlv : Tlv, IEquatable<Tlv>
- Inheritance
-
NetworksTlv
- Implements
- Inherited Members
Remarks
The networks TLV is used in the InitMessage to communicate the networks that the node supports.
Constructors
NetworksTlv(IEnumerable<ChainHash>)
public NetworksTlv(IEnumerable<ChainHash> chainHashes)
Parameters
chainHashes
IEnumerable<ChainHash>
Properties
ChainHashes
The chain hashes.
public IEnumerable<ChainHash>? ChainHashes { get; }
Property Value
Remarks
The chain hashes are the hashes of the chains that the node supports.
Methods
FromTlv(Tlv)
Cast a NetworksTLV from a Tlv.
public static NetworksTlv FromTlv(Tlv tlv)
Parameters
tlv
TlvThe tlv to cast from.
Returns
- NetworksTlv
The cast NetworksTLV.
Exceptions
- InvalidCastException
Error casting NetworksTLV