contractcourt+itest: make sure ChannelArbitrator has the latest htlcs

This commit is contained in:
yyforyongyu
2024-05-17 05:02:02 +08:00
parent 71ee50f87c
commit e45db07a10
3 changed files with 7 additions and 6 deletions

View File

@@ -3089,6 +3089,9 @@ func (c *ChannelArbitrator) channelAttendant(bestHeight int32) {
// We've just received a request to forcibly close out the
// channel. We'll
case closeReq := <-c.forceCloseReqs:
log.Infof("ChannelArbitrator(%v): received force "+
"close request", c.cfg.ChanPoint)
if c.state != StateDefault {
select {
case closeReq.closeTx <- nil: