Class ClosureReason

    • Method Detail

      • counterparty_force_closed

        public static ClosureReason counterparty_force_closed​(UntrustedString 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
      • funding_timed_out

        public static ClosureReason funding_timed_out()
        Utility method to constructs a new FundingTimedOut-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
      • eq

        public boolean eq​(ClosureReason b)
        Checks if two ClosureReasons contain equal inner contents. This ignores pointers and is_owned flags and looks at the values in fields.
      • write

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