itest: add case for taproot chans to htlc timeout resolver itests
This commit is contained in:
1 file changed
+4
-4
@@ -2173,9 +2173,9 @@ func runExtraPreimageFromRemoteCommit(ht *lntest.HarnessTest,
|
|||||||
case lnrpc.CommitmentType_LEGACY:
|
case lnrpc.CommitmentType_LEGACY:
|
||||||
numTxesMempool++
|
numTxesMempool++
|
||||||
|
|
||||||
// For non-anchor channel type, we should expect to see Bob's commit
|
// For anchor channel type, we should expect to see Bob's commit sweep
|
||||||
// sweep and his anchor sweep tx in the mempool.
|
// and his anchor sweep tx in the mempool.
|
||||||
case lnrpc.CommitmentType_ANCHORS:
|
case lnrpc.CommitmentType_ANCHORS, lnrpc.CommitmentType_SIMPLE_TAPROOT:
|
||||||
numTxesMempool += 2
|
numTxesMempool += 2
|
||||||
|
|
||||||
// For script-enforced leased channel, we should expect to see Bob's
|
// For script-enforced leased channel, we should expect to see Bob's
|
||||||
@@ -2323,7 +2323,7 @@ func runExtraPreimageFromLocalCommit(ht *lntest.HarnessTest,
|
|||||||
htlcOutpoint.Index = 0
|
htlcOutpoint.Index = 0
|
||||||
ht.Miner.AssertNumTxsInMempool(2)
|
ht.Miner.AssertNumTxsInMempool(2)
|
||||||
|
|
||||||
case lnrpc.CommitmentType_ANCHORS:
|
case lnrpc.CommitmentType_ANCHORS, lnrpc.CommitmentType_SIMPLE_TAPROOT:
|
||||||
htlcOutpoint.Index = 2
|
htlcOutpoint.Index = 2
|
||||||
ht.Miner.AssertNumTxsInMempool(3)
|
ht.Miner.AssertNumTxsInMempool(3)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user