Class MonitorEvent

    • Method Detail

      • htlcevent

        public static MonitorEvent htlcevent​(HTLCUpdate a)
        Utility method to constructs a new HTLCEvent-variant MonitorEvent
      • commitment_tx_confirmed

        public static MonitorEvent commitment_tx_confirmed​(OutPoint a)
        Utility method to constructs a new CommitmentTxConfirmed-variant MonitorEvent
      • completed

        public static MonitorEvent completed​(OutPoint funding_txo,
                                             long monitor_update_id)
        Utility method to constructs a new Completed-variant MonitorEvent
      • update_failed

        public static MonitorEvent update_failed​(OutPoint a)
        Utility method to constructs a new UpdateFailed-variant MonitorEvent
      • eq

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

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