Class ClosureReason

    • Method Detail

      • counterparty_force_closed

        public static ClosureReason counterparty_force_closed​(String peer_msg)
        Utility method to constructs a new CounterpartyForceClosed-variant ClosureReason
      • holder_force_closed

        public static ClosureReason holder_force_closed()
        Utility method to constructs a new HolderForceClosed-variant ClosureReason
      • cooperative_closure

        public static ClosureReason cooperative_closure()
        Utility method to constructs a new CooperativeClosure-variant ClosureReason
      • commitment_tx_confirmed

        public static ClosureReason commitment_tx_confirmed()
        Utility method to constructs a new CommitmentTxConfirmed-variant ClosureReason
      • processing_error

        public static ClosureReason processing_error​(String err)
        Utility method to constructs a new ProcessingError-variant ClosureReason
      • disconnected_peer

        public static ClosureReason disconnected_peer()
        Utility method to constructs a new DisconnectedPeer-variant ClosureReason
      • outdated_channel_manager

        public static ClosureReason outdated_channel_manager()
        Utility method to constructs a new OutdatedChannelManager-variant ClosureReason
      • write

        public byte[] write()
        Serialize the ClosureReason object into a byte array which can be read by ClosureReason_read