1
0

lnsweep: rm one usage of Transaction.get_preimage_script()

get_preimage_script should really have been private API...
looks like everywhere it is used outside of transaction.py, it is actually abused :/
Other existing usages in plugin code I don't dare to touch without lots of manual testing...
This commit is contained in:
SomberNight
2024-05-24 13:40:48 +00:00
parent 2f02e0acc3
commit bafd52ec6d
3 changed files with 27 additions and 22 deletions

View File

@@ -584,7 +584,7 @@ class TestLNUtil(ElectrumTestCase):
htlc_output_txid=our_commit_tx.txid(),
htlc_output_index=htlc_output_index,
amount_msat=amount_msat,
witness_script=htlc.hex())
witness_script=htlc)
our_htlc_tx = make_htlc_tx(
cltv_abs=cltv_abs,
inputs=our_htlc_tx_inputs,