Enum Class LnrpcCommitmentType

java.lang.Object
java.lang.Enum<LnrpcCommitmentType>
net.osslabz.lnd.dto.LnrpcCommitmentType
All Implemented Interfaces:
Serializable, Comparable<LnrpcCommitmentType>, Constable

public enum LnrpcCommitmentType extends Enum<LnrpcCommitmentType>
- 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.
  • Enum Constant Details

  • Method Details

    • values

      public static LnrpcCommitmentType[] 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

      public static LnrpcCommitmentType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<LnrpcCommitmentType>
    • fromValue

      public static LnrpcCommitmentType fromValue(String value)