Package net.osslabz.lnd.dto
Enum Class LnrpcCommitmentType
- All Implemented Interfaces:
Serializable,Comparable<LnrpcCommitmentType>,Constable
- UNKNOWN_COMMITMENT_TYPE: Returned when the commitment type isn't known or unavailable. - LEGACY: A channel using the legacy commitment format having tweaked to_remote keys. - STATIC_REMOTE_KEY: A channel that uses the modern commitment format where the key in the output of the remote party does not change each state. This makes back up and recovery easier as when the channel is closed, the funds go directly to that key. - ANCHORS: A channel that uses a commitment format that has anchor outputs on the commitments, allowing fee bumping after a force close transaction has been broadcast. - SCRIPT_ENFORCED_LEASE: A channel that uses a commitment type that builds upon the anchors commitment format, but in addition requires a CLTV clause to spend outputs paying to the channel initiator. This is intended for use on leased channels to guarantee that the channel initiator has no incentives to close a leased channel before its maturity date.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic LnrpcCommitmentTypegetValue()toString()static LnrpcCommitmentTypeReturns the enum constant of this class with the specified name.static LnrpcCommitmentType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN_COMMITMENT_TYPE
-
LEGACY
-
STATIC_REMOTE_KEY
-
ANCHORS
-
SCRIPT_ENFORCED_LEASE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
-
toString
- Overrides:
toStringin classEnum<LnrpcCommitmentType>
-
fromValue
-