mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
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:
parent
d5336adbeb
commit
a7451622e5
14 changed files with 266 additions and 106 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue