multi: completely remove support for NP2WSH htlcs

This commit removes all code related to NP2WSH htlcs. These were
historically used when segwit adoption was very sporadic and are not
used anywhere anymore. Some historical swaps stored in the DB may be
listed with incorrect htlc adresses from here on.
This commit is contained in:
Andras Banki-Horvath 2022-11-04 16:06:22 +01:00
parent b36885fb65
commit 88956455b4
No known key found for this signature in database
GPG key ID: 80E5375C094198D8
15 changed files with 399 additions and 777 deletions

View file

@ -370,9 +370,6 @@ func testLoopOutSuccess(ctx *testContext, amt btcutil.Amount, hash lntypes.Hash,
var preImageIndex int
switch scriptVersion {
case swap.HtlcV1:
preImageIndex = 1
case swap.HtlcV2:
preImageIndex = 0