Skip to content

Commit b9a2faa

Browse files
niftyneiddustin
authored andcommitted
fixup! channeld: Code to implement splicing
1 parent a056ec1 commit b9a2faa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contrib/pyln-client/pyln/client/lightning.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1211,7 +1211,7 @@ def splice_init(self, chan_id, amount, initialpsbt=None, feerate_per_kw=None):
12111211
""" Initiate a splice """
12121212
payload = {
12131213
"channel_id": chan_id,
1214-
"amount": amount,
1214+
"relative_amount": amount,
12151215
"initialpsbt": initialpsbt,
12161216
"feerate_per_kw": feerate_per_kw,
12171217
}

tests/test_splicing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def test_splice(node_factory, bitcoind):
1111
# add extra sats to pay fee
1212
funds_result = l1.rpc.fundpsbt("109000sat", "slow", 166, excess_as_change=True)
1313

14-
result = l1.rpc.splice_init(chan_id, 1100000, funds_result['psbt'])
14+
result = l1.rpc.splice_init(chan_id, 100000, funds_result['psbt'])
1515
result = l1.rpc.splice_update(chan_id, result['psbt'])
1616
result = l1.rpc.signpsbt(result['psbt'])
1717
result = l1.rpc.splice_signed(chan_id, result['signed_psbt'])

0 commit comments

Comments
 (0)