itest: add taproot support for all variants of runMultiHopHtlcClaimTest

This commit is contained in:
Olaoluwa Osuntokun committed 2023-08-22 16:34:06 -07:00
1 parent 5739061f13
commit 7c5be4d056
3 files changed
+290 -43

No files matched your search

+6 -4
View File
@@ -1782,10 +1782,12 @@ func (h *HarnessTest) OpenMultiChannelsAsync(
// Wait for the channel open event from the stream.
cp := h.WaitForChannelOpenEvent(req.stream)
// Check that both alice and bob have seen the channel
// from their channel watch request.
h.AssertTopologyChannelOpen(req.Local, cp)
h.AssertTopologyChannelOpen(req.Remote, cp)
if !req.Param.Private {
// Check that both alice and bob have seen the channel
// from their channel watch request.
h.AssertTopologyChannelOpen(req.Local, cp)
h.AssertTopologyChannelOpen(req.Remote, cp)
}
// Finally, check that the channel can be seen in their
// ListChannels.
+1
View File
@@ -137,6 +137,7 @@ func CommitTypeHasTaproot(commitType lnrpc.CommitmentType) bool {
func CommitTypeHasAnchors(commitType lnrpc.CommitmentType) bool {
switch commitType {
case lnrpc.CommitmentType_ANCHORS,
lnrpc.CommitmentType_SIMPLE_TAPROOT,
lnrpc.CommitmentType_SCRIPT_ENFORCED_LEASE:
return true
default: