lntest+itest: fix testDataLossProtection

This commit is contained in:
yyforyongyu
2022-11-01 08:56:40 +08:00
parent 8288d3da8e
commit 28203fc77c
2 changed files with 39 additions and 30 deletions

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{}{}
}