mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
loopout: register for confirmation using htlc tx hash
This commit is contained in:
parent
190caa4097
commit
e22524a262
4 changed files with 42 additions and 16 deletions
|
|
@ -115,7 +115,7 @@ func TestLoopOutPaymentParameters(t *testing.T) {
|
|||
|
||||
// Swap is expected to register for confirmation of the htlc. Assert
|
||||
// this to prevent a blocked channel in the mock.
|
||||
ctx.AssertRegisterConf()
|
||||
ctx.AssertRegisterConf(false)
|
||||
|
||||
// Cancel the swap. There is nothing else we need to assert. The payment
|
||||
// parameters don't play a role in the remainder of the swap process.
|
||||
|
|
@ -187,7 +187,7 @@ func TestLateHtlcPublish(t *testing.T) {
|
|||
signalPrepaymentResult := ctx.AssertPaid(prepayInvoiceDesc)
|
||||
|
||||
// Expect client to register for conf
|
||||
ctx.AssertRegisterConf()
|
||||
ctx.AssertRegisterConf(false)
|
||||
|
||||
// // Wait too long before publishing htlc.
|
||||
blockEpochChan <- int32(swap.CltvExpiry - 10)
|
||||
|
|
@ -283,7 +283,7 @@ func TestCustomSweepConfTarget(t *testing.T) {
|
|||
signalPrepaymentResult(nil)
|
||||
|
||||
// Notify the confirmation notification for the HTLC.
|
||||
ctx.AssertRegisterConf()
|
||||
ctx.AssertRegisterConf(false)
|
||||
|
||||
blockEpochChan <- ctx.Lnd.Height + 1
|
||||
|
||||
|
|
@ -484,7 +484,7 @@ func TestPreimagePush(t *testing.T) {
|
|||
signalPrepaymentResult(nil)
|
||||
|
||||
// Notify the confirmation notification for the HTLC.
|
||||
ctx.AssertRegisterConf()
|
||||
ctx.AssertRegisterConf(false)
|
||||
|
||||
blockEpochChan <- ctx.Lnd.Height + 1
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue