contractcourt+itest: make sure ChannelArbitrator has the latest htlcs

This commit is contained in:
yyforyongyu committed 2024-05-21 00:53:23 +08:00
1 parent 71ee50f87c
commit e45db07a10
3 files changed
+7 -6

No files matched your search

+4
View File
@@ -1287,6 +1287,10 @@ func (c *ChainArbitrator) FindOutgoingHTLCDeadline(scid lnwire.ShortChannelID,
continue
}
// Make sure the channel arbitrator has the latest view of its
// active HTLCs.
channelArb.updateActiveHTLCs()
// Iterate all the known HTLCs to find the targeted incoming
// HTLC.
for _, htlcs := range channelArb.activeHTLCs {