Package net.osslabz.lnd.dto
Class LnrpcFailure
java.lang.Object
net.osslabz.lnd.dto.LnrpcFailure
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2023-06-07T12:03:34.958542131Z[Etc/UTC]")
public class LnrpcFailure
extends Object
LnrpcFailure
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchannelUpdate(LnrpcChannelUpdate channelUpdate) cltvExpiry(Long cltvExpiry) code(FailureFailureCode code) booleanfailureSourceIndex(Long failureSourceIndex) Get channelUpdateA failure type-dependent cltv expiry value.getCode()Get codeThe position in the path of the intermediate or final node that generated the failure message.getFlags()A failure type-dependent flags value.A failure type-dependent block height.A failure type-dependent htlc value.byte[]The sha256 sum of the onion payload.inthashCode()onionSha256(byte[] onionSha256) voidsetChannelUpdate(LnrpcChannelUpdate channelUpdate) voidsetCltvExpiry(Long cltvExpiry) voidsetCode(FailureFailureCode code) voidsetFailureSourceIndex(Long failureSourceIndex) voidvoidvoidsetHtlcMsat(String htlcMsat) voidsetOnionSha256(byte[] onionSha256) toString()
-
Field Details
-
SERIALIZED_NAME_CODE
- See Also:
-
SERIALIZED_NAME_CHANNEL_UPDATE
- See Also:
-
SERIALIZED_NAME_HTLC_MSAT
- See Also:
-
SERIALIZED_NAME_ONION_SHA256
- See Also:
-
SERIALIZED_NAME_CLTV_EXPIRY
- See Also:
-
SERIALIZED_NAME_FLAGS
- See Also:
-
SERIALIZED_NAME_FAILURE_SOURCE_INDEX
- See Also:
-
SERIALIZED_NAME_HEIGHT
- See Also:
-
-
Constructor Details
-
LnrpcFailure
public LnrpcFailure()
-
-
Method Details
-
code
-
getCode
Get code- Returns:
- code
-
setCode
-
channelUpdate
-
getChannelUpdate
Get channelUpdate- Returns:
- channelUpdate
-
setChannelUpdate
-
htlcMsat
-
getHtlcMsat
A failure type-dependent htlc value.- Returns:
- htlcMsat
-
setHtlcMsat
-
onionSha256
-
getOnionSha256
@Nullable public byte[] getOnionSha256()The sha256 sum of the onion payload.- Returns:
- onionSha256
-
setOnionSha256
public void setOnionSha256(byte[] onionSha256) -
cltvExpiry
-
getCltvExpiry
A failure type-dependent cltv expiry value.- Returns:
- cltvExpiry
-
setCltvExpiry
-
flags
-
getFlags
A failure type-dependent flags value.- Returns:
- flags
-
setFlags
-
failureSourceIndex
-
getFailureSourceIndex
The position in the path of the intermediate or final node that generated the failure message. Position zero is the sender node.- Returns:
- failureSourceIndex
-
setFailureSourceIndex
-
height
-
getHeight
A failure type-dependent block height.- Returns:
- height
-
setHeight
-
equals
-
hashCode
public int hashCode() -
toString
-