]> git.bitcoin.ninja Git - rust-lightning/commit
Apply a default max fee rather than none when paying for BOLT12
authorMatt Corallo <git@bluematt.me>
Fri, 20 Oct 2023 17:31:42 +0000 (17:31 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 20 Oct 2023 18:09:09 +0000 (18:09 +0000)
commitec4395cf6eae14605cd41fc715a08ac0bcd786c3
tree540fa8d84301ceaa834921fcbb4764dc692e10b1
parentbe8797e17ab5c56582340d1f5e57f92477ede69d
Apply a default max fee rather than none when paying for BOLT12

If the user declines to specify a `max_total_routing_fee_msat` in
the new BOLT12 payment methods, rather than defaulting to no limit
on the fee we pay at all, we should default to our "usual default",
ie the one calculated in
`RouteParameters::from_payment_params_and_value`.

We do this here, as well as documenting the behavior on the payment
methods.
lightning/src/ln/channelmanager.rs
lightning/src/ln/outbound_payment.rs