Skip to content

Commit

Permalink
fixup! channeld: Code to implement splicing
Browse files Browse the repository at this point in the history
  • Loading branch information
niftynei committed May 12, 2023
1 parent 9c93a37 commit c71a13d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contrib/pyln-client/pyln/client/lightning.py
Original file line number Diff line number Diff line change
Expand Up @@ -1211,7 +1211,7 @@ def splice_init(self, chan_id, amount, initialpsbt=None, feerate_per_kw=None):
""" Initiate a splice """
payload = {
"channel_id": chan_id,
"amount": amount,
"relative_amount": amount,
"initialpsbt": initialpsbt,
"feerate_per_kw": feerate_per_kw,
}
Expand Down
2 changes: 1 addition & 1 deletion tests/test_splicing.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def test_splice(node_factory, bitcoind):
# add extra sats to pay fee
funds_result = l1.rpc.fundpsbt("109000sat", "slow", 166, excess_as_change=True)

result = l1.rpc.splice_init(chan_id, 1100000, funds_result['psbt'])
result = l1.rpc.splice_init(chan_id, 100000, funds_result['psbt'])
result = l1.rpc.splice_update(chan_id, result['psbt'])
result = l1.rpc.signpsbt(result['psbt'])
result = l1.rpc.splice_signed(chan_id, result['signed_psbt'])
Expand Down

0 comments on commit c71a13d

Please sign in to comment.