rust-lightning/lightning
Viktor Tigerström 5c7bfa7392 Set ChannelUpdate htlc_maximum_msat using the peer's value
Use the `counterparty_max_htlc_value_in_flight_msat` value, and not the
`holder_max_htlc_value_in_flight_msat` value when creating the
`htlc_maximum_msat` value for `ChannelUpdate` messages.

BOLT 7 specifies that the field MUST be less than or equal to
`max_htlc_value_in_flight_msat` received from the peer, which we
currently are not guaranteed to adhere to by using the holder value.
2022-05-03 22:42:37 +02:00
..
src Set ChannelUpdate htlc_maximum_msat using the peer's value 2022-05-03 22:42:37 +02:00
Cargo.toml Bump crate versions to 0.0.106/invoice 0.14 2022-04-03 08:05:08 -05:00