1
0

swaps: rm support for p2wsh-p2sh lockup scripts

- unused
- the client was already refusing to fund such lockup addresses (if the server asked)
- no existing unit tests for it, and as the choice is up to the server, it is hard to create tests
- no clear reason to want to use p2sh-nested scripts here, aside from curiosity
This commit is contained in:
SomberNight
2023-02-17 14:10:03 +00:00
parent 8a4c06b692
commit 72e1be6f5e
2 changed files with 2 additions and 10 deletions

View File

@@ -34,7 +34,6 @@ class TestSwapTxs(TestCaseForTestnet):
prevout=TxOutpoint(txid=bfh(swap_data.funding_txid), out_idx=0),
)
txin._trusted_value_sats = swap_data.onchain_amount
txin._trusted_address = swap_data.lockup_address
tx = SwapManager._create_and_sign_claim_tx(
txin=txin,
swap=swap_data,
@@ -65,7 +64,6 @@ class TestSwapTxs(TestCaseForTestnet):
prevout=TxOutpoint(txid=bfh(swap_data.funding_txid), out_idx=0),
)
txin._trusted_value_sats = swap_data.onchain_amount
txin._trusted_address = swap_data.lockup_address
tx = SwapManager._create_and_sign_claim_tx(
txin=txin,
swap=swap_data,