Package net.osslabz.lnd.dto
Class LnrpcChannelUpdate
java.lang.Object
net.osslabz.lnd.dto.LnrpcChannelUpdate
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2023-06-07T12:03:34.958542131Z[Etc/UTC]")
public class LnrpcChannelUpdate
extends Object
LnrpcChannelUpdate
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchainHash(byte[] chainHash) channelFlags(Long channelFlags) booleanextraOpaqueData(byte[] extraOpaqueData) The base fee that must be used for incoming HTLC's to this particular channel.byte[]The target chain that this channel was opened within.The unique description of the funding transaction.The bitfield that describes additional meta-data concerning how the update is to be interpreted.byte[]The set of data that was appended to this message, some of which we may not actually know how to iterate or parse.The fee rate that will be charged per millionth of a satoshi.The maximum HTLC value which will be accepted.The minimum HTLC value which will be accepted.The bitfield that describes whether optional fields are present in this update.byte[]The signature that validates the announced data and proves the ownership of node id.The minimum number of blocks this node requires to be added to the expiry of HTLCs.A timestamp that allows ordering in the case of multiple announcements.inthashCode()htlcMaximumMsat(String htlcMaximumMsat) htlcMinimumMsat(String htlcMinimumMsat) messageFlags(Long messageFlags) voidsetBaseFee(Long baseFee) voidsetChainHash(byte[] chainHash) voidvoidsetChannelFlags(Long channelFlags) voidsetExtraOpaqueData(byte[] extraOpaqueData) voidsetFeeRate(Long feeRate) voidsetHtlcMaximumMsat(String htlcMaximumMsat) voidsetHtlcMinimumMsat(String htlcMinimumMsat) voidsetMessageFlags(Long messageFlags) voidsetSignature(byte[] signature) voidsetTimeLockDelta(Long timeLockDelta) voidsetTimestamp(Long timestamp) signature(byte[] signature) timeLockDelta(Long timeLockDelta) toString()
-
Field Details
-
SERIALIZED_NAME_SIGNATURE
- See Also:
-
SERIALIZED_NAME_CHAIN_HASH
- See Also:
-
SERIALIZED_NAME_CHAN_ID
- See Also:
-
SERIALIZED_NAME_TIMESTAMP
- See Also:
-
SERIALIZED_NAME_MESSAGE_FLAGS
- See Also:
-
SERIALIZED_NAME_CHANNEL_FLAGS
- See Also:
-
SERIALIZED_NAME_TIME_LOCK_DELTA
- See Also:
-
SERIALIZED_NAME_HTLC_MINIMUM_MSAT
- See Also:
-
SERIALIZED_NAME_BASE_FEE
- See Also:
-
SERIALIZED_NAME_FEE_RATE
- See Also:
-
SERIALIZED_NAME_HTLC_MAXIMUM_MSAT
- See Also:
-
SERIALIZED_NAME_EXTRA_OPAQUE_DATA
- See Also:
-
-
Constructor Details
-
LnrpcChannelUpdate
public LnrpcChannelUpdate()
-
-
Method Details
-
signature
-
getSignature
@Nullable public byte[] getSignature()The signature that validates the announced data and proves the ownership of node id.- Returns:
- signature
-
setSignature
public void setSignature(byte[] signature) -
chainHash
-
getChainHash
@Nullable public byte[] getChainHash()The target chain that this channel was opened within. This value should be the genesis hash of the target chain. Along with the short channel ID, this uniquely identifies the channel globally in a blockchain.- Returns:
- chainHash
-
setChainHash
public void setChainHash(byte[] chainHash) -
chanId
-
getChanId
The unique description of the funding transaction.- Returns:
- chanId
-
setChanId
-
timestamp
-
getTimestamp
A timestamp that allows ordering in the case of multiple announcements. We should ignore the message if timestamp is not greater than the last-received.- Returns:
- timestamp
-
setTimestamp
-
messageFlags
-
getMessageFlags
The bitfield that describes whether optional fields are present in this update. Currently, the least-significant bit must be set to 1 if the optional field MaxHtlc is present.- Returns:
- messageFlags
-
setMessageFlags
-
channelFlags
-
getChannelFlags
The bitfield that describes additional meta-data concerning how the update is to be interpreted. Currently, the least-significant bit must be set to 0 if the creating node corresponds to the first node in the previously sent channel announcement and 1 otherwise. If the second bit is set, then the channel is set to be disabled.- Returns:
- channelFlags
-
setChannelFlags
-
timeLockDelta
-
getTimeLockDelta
The minimum number of blocks this node requires to be added to the expiry of HTLCs. This is a security parameter determined by the node operator. This value represents the required gap between the time locks of the incoming and outgoing HTLC's set to this node.- Returns:
- timeLockDelta
-
setTimeLockDelta
-
htlcMinimumMsat
-
getHtlcMinimumMsat
The minimum HTLC value which will be accepted.- Returns:
- htlcMinimumMsat
-
setHtlcMinimumMsat
-
baseFee
-
getBaseFee
The base fee that must be used for incoming HTLC's to this particular channel. This value will be tacked onto the required for a payment independent of the size of the payment.- Returns:
- baseFee
-
setBaseFee
-
feeRate
-
getFeeRate
The fee rate that will be charged per millionth of a satoshi.- Returns:
- feeRate
-
setFeeRate
-
htlcMaximumMsat
-
getHtlcMaximumMsat
The maximum HTLC value which will be accepted.- Returns:
- htlcMaximumMsat
-
setHtlcMaximumMsat
-
extraOpaqueData
-
getExtraOpaqueData
@Nullable public byte[] getExtraOpaqueData()The set of data that was appended to this message, some of which we may not actually know how to iterate or parse. By holding onto this data, we ensure that we're able to properly validate the set of signatures that cover these new fields, and ensure we're able to make upgrades to the network in a forwards compatible manner.- Returns:
- extraOpaqueData
-
setExtraOpaqueData
public void setExtraOpaqueData(byte[] extraOpaqueData) -
equals
-
hashCode
public int hashCode() -
toString
-