loopout: register for confirmation using htlc tx hash

This commit is contained in:
Joost Jager 2020-06-23 11:49:43 +02:00
parent 190caa4097
commit e22524a262
No known key found for this signature in database
GPG key ID: A61B9D4C393C59C7
4 changed files with 42 additions and 16 deletions

View file

@ -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