itest: add taproot support for all variants of runMultiHopHtlcClaimTest
This commit is contained in:
3 files changed
+290
-43
No files matched your search
+6
-4
@@ -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.
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user