Class UpdateFee


  • public class UpdateFee
    extends Object
    An [`update_fee`] message to be sent to or received from a peer [`update_fee`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#updating-fees-update_fee
    • Method Detail

      • get_channel_id

        public byte[] get_channel_id()
        The channel ID
      • set_channel_id

        public void set_channel_id​(byte[] val)
        The channel ID
      • get_feerate_per_kw

        public int get_feerate_per_kw()
        Fee rate per 1000-weight of the transaction
      • set_feerate_per_kw

        public void set_feerate_per_kw​(int val)
        Fee rate per 1000-weight of the transaction
      • of

        public static UpdateFee of​(byte[] channel_id_arg,
                                   int feerate_per_kw_arg)
        Constructs a new UpdateFee given each field
      • clone

        public UpdateFee clone()
        Creates a copy of the UpdateFee
        Overrides:
        clone in class Object
      • eq

        public boolean eq​(UpdateFee b)
        Checks if two UpdateFees contain equal inner contents. This ignores pointers and is_owned flags and looks at the values in fields. Two objects with NULL inner values will be considered "equal" here.
      • write

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