Skip to content

Commit 1d6b2c3

Browse files
committed
lsp_plugin: change extra_fee value type to u64
Blip25 https://github.com/lightning/blips/blob/master/blip-0025.md uses u64 for the `amount_msat` in the `extra_fee` Signed-off-by: Peter Neuroth <[email protected]>
1 parent 76cf970 commit 1d6b2c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/lsps-plugin/src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ async fn on_htlc_accepted(
445445

446446
// Safe unwrap(): we already checked that `extra_tlvs` exists.
447447
let extra_tlvs = req.htlc.extra_tlvs.unwrap();
448-
let deducted_amt = match extra_tlvs.get_tu64(65537)? {
448+
let deducted_amt = match extra_tlvs.get_u64(65537)? {
449449
Some(amt) => amt,
450450
None => {
451451
warn!("htlc is missing the extra_fee amount");

0 commit comments

Comments
 (0)