mod: bump LND and lndclient to include musig2 1.0rc2 changes

This commit bumps LND and lndclient to make it possible to upgrade
taproot HTLC construction with a MuSig2 version. This is required to
support both old (MuSig2 0.4) and new (MuSig2 1.0) clients.
This commit is contained in:
Andras Banki-Horvath 2023-01-09 16:36:52 +01:00
parent d5336adbeb
commit a7451622e5
No known key found for this signature in database
GPG key ID: 80E5375C094198D8
14 changed files with 266 additions and 106 deletions

View file

@ -11,7 +11,7 @@ import (
"github.com/lightninglabs/loop/swap"
"github.com/lightninglabs/loop/test"
"github.com/lightningnetwork/lnd/chainntnfs"
"github.com/lightningnetwork/lnd/channeldb"
invpkg "github.com/lightningnetwork/lnd/invoices"
"github.com/lightningnetwork/lnd/routing/route"
"github.com/stretchr/testify/require"
)
@ -116,7 +116,7 @@ func testLoopInSuccess(t *testing.T) {
// Server has already paid invoice before spending the htlc. Signal
// settled.
ctx.updateInvoiceState(49000, channeldb.ContractSettled)
ctx.updateInvoiceState(49000, invpkg.ContractSettled)
// Swap is expected to move to the state InvoiceSettled
ctx.assertState(loopdb.StateInvoiceSettled)
@ -327,7 +327,7 @@ func testLoopInTimeout(t *testing.T, externalValue int64) {
<-ctx.lnd.FailInvoiceChannel
// Signal that the invoice was canceled.
ctx.updateInvoiceState(0, channeldb.ContractCanceled)
ctx.updateInvoiceState(0, invpkg.ContractCanceled)
ctx.assertState(loopdb.StateFailTimeout)
state := ctx.store.assertLoopInState(loopdb.StateFailTimeout)
@ -559,7 +559,7 @@ func testLoopInResume(t *testing.T, state loopdb.SwapState, expired bool,
// Server has already paid invoice before spending the htlc. Signal
// settled.
amtPaid := btcutil.Amount(49000)
ctx.updateInvoiceState(amtPaid, channeldb.ContractSettled)
ctx.updateInvoiceState(amtPaid, invpkg.ContractSettled)
// Swap is expected to move to the state InvoiceSettled
ctx.assertState(loopdb.StateInvoiceSettled)