itest: add case for taproot chans to htlc timeout resolver itests

This commit is contained in:
Olaoluwa Osuntokun 2023-08-22 17:43:51 -07:00
parent 92da6b1d44
commit a87631c957
No known key found for this signature in database
GPG Key ID: 3BBD59E99B280306

View File

@ -2173,9 +2173,9 @@ func runExtraPreimageFromRemoteCommit(ht *lntest.HarnessTest,
case lnrpc.CommitmentType_LEGACY:
numTxesMempool++
// For non-anchor channel type, we should expect to see Bob's commit
// sweep and his anchor sweep tx in the mempool.
case lnrpc.CommitmentType_ANCHORS:
// For anchor channel type, we should expect to see Bob's commit sweep
// and his anchor sweep tx in the mempool.
case lnrpc.CommitmentType_ANCHORS, lnrpc.CommitmentType_SIMPLE_TAPROOT:
numTxesMempool += 2
// For script-enforced leased channel, we should expect to see Bob's
@ -2323,7 +2323,7 @@ func runExtraPreimageFromLocalCommit(ht *lntest.HarnessTest,
htlcOutpoint.Index = 0
ht.Miner.AssertNumTxsInMempool(2)
case lnrpc.CommitmentType_ANCHORS:
case lnrpc.CommitmentType_ANCHORS, lnrpc.CommitmentType_SIMPLE_TAPROOT:
htlcOutpoint.Index = 2
ht.Miner.AssertNumTxsInMempool(3)