lntest+itest: fix testDataLossProtection

This commit is contained in:
yyforyongyu committed 2023-02-23 21:56:10 +08:00
1 parent 8288d3da8e
commit 28203fc77c
2 files changed
+39 -30

No files matched your search

+3 -1
View File
@@ -1169,7 +1169,9 @@ func (h *HarnessTest) AssertActiveHtlcs(hn *node.HarnessNode,
h := hex.EncodeToString(htlc.HashLock)
_, ok := htlcHashes[h]
if ok {
return fmt.Errorf("duplicate HashLock")
return fmt.Errorf("duplicate HashLock "+
"in PendingHtlcs: %v",
ch.PendingHtlcs)
}
htlcHashes[h] = struct{}{}
}