lntest+itest: fix testDataLossProtection
This commit is contained in:
2 files changed
+39
-30
No files matched your search
@@ -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{}{}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user