@@ -978,15 +978,6 @@ func runChannelForceClosureTestRestart(ht *lntest.HarnessTest,
978978 Outpoint : commitSweep .Outpoint ,
979979 AmountSat : uint64 (aliceBalance ),
980980 }
981- op = fmt .Sprintf ("%v:%v" , anchorSweep .Outpoint .TxidStr ,
982- anchorSweep .Outpoint .OutputIndex )
983- aliceReports [op ] = & lnrpc.Resolution {
984- ResolutionType : lnrpc .ResolutionType_ANCHOR ,
985- Outcome : lnrpc .ResolutionOutcome_CLAIMED ,
986- SweepTxid : sweepTxid .String (),
987- Outpoint : anchorSweep .Outpoint ,
988- AmountSat : uint64 (anchorSweep .AmountSat ),
989- }
990981
991982 // Check that we can find the commitment sweep in our set of known
992983 // sweeps, using the simple transaction id ListSweeps output.
@@ -1101,8 +1092,9 @@ func runChannelForceClosureTestRestart(ht *lntest.HarnessTest,
11011092
11021093 // Since Alice had numInvoices (6) htlcs extended to Carol before force
11031094 // closing, we expect Alice to broadcast an htlc timeout txn for each
1104- // one.
1105- ht .AssertNumPendingSweeps (alice , numInvoices )
1095+ // one. In addition, the anchor input is still pending due to it's
1096+ // uneconomical to sweep.
1097+ ht .AssertNumPendingSweeps (alice , numInvoices + 1 )
11061098
11071099 // Wait for them all to show up in the mempool
11081100 htlcTxid := ht .AssertNumTxsInMempool (1 )[0 ]
@@ -1198,7 +1190,7 @@ func runChannelForceClosureTestRestart(ht *lntest.HarnessTest,
11981190 numBlocks := int (htlcCsvMaturityHeight - uint32 (curHeight ) - 1 )
11991191 ht .MineEmptyBlocks (numBlocks )
12001192
1201- ht .AssertNumPendingSweeps (alice , numInvoices )
1193+ ht .AssertNumPendingSweeps (alice , numInvoices + 1 )
12021194
12031195 // Fetch the htlc sweep transaction from the mempool.
12041196 htlcSweepTx := ht .GetNumTxsFromMempool (1 )[0 ]
@@ -1220,7 +1212,7 @@ func runChannelForceClosureTestRestart(ht *lntest.HarnessTest,
12201212 }, defaultTimeout )
12211213 require .NoError (ht , err , "timeout while checking force closed channel" )
12221214
1223- ht .AssertNumPendingSweeps (alice , numInvoices )
1215+ ht .AssertNumPendingSweeps (alice , numInvoices + 1 )
12241216
12251217 // Ensure the htlc sweep transaction only has one input for each htlc
12261218 // Alice extended before force closing.
0 commit comments