Skip to content

Commit 0e0bfdc

Browse files
committed
injectpayment_onion: fix fees for blinded paths
Changelog-Fixed: injectpayment_onion: fix fees for blinded paths. Signed-off-by: Lagrang3 <lagrang3@protonmail.com>
1 parent 777c867 commit 0e0bfdc

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

lightningd/pay.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1931,6 +1931,7 @@ static struct command_result *json_injectpaymentonion(struct command *cmd,
19311931
tal_hex(tmpctx, rs->raw_payload),
19321932
failtlvtype, failtlvpos, explanation);
19331933
}
1934+
*msat = payload->amt_to_forward;
19341935

19351936
/* If we have and can decode invstring, we extract destination for listsendpays */
19361937
if (invstring) {

tests/test_xpay.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,6 @@ def mock_getblockhash(req):
10741074
fut.result(TIMEOUT)
10751075

10761076

1077-
@unittest.skip
10781077
def test_bolt12_fees(node_factory):
10791078
AMT_MSAT = 10000
10801079
FEES_MSAT = 5000

0 commit comments

Comments
 (0)