Merge pull request #7752 from yyforyongyu/improve-logging

contractcourt: improve logging for failing dangling htlcs
This commit is contained in:
Oliver Gugger 2023-06-08 18:31:44 +02:00 committed by GitHub
commit 0005adaac8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1865,8 +1865,8 @@ func (c *ChannelArbitrator) checkRemoteDanglingActions(
continue
}
log.Infof("ChannelArbitrator(%v): immediately failing "+
"htlc=%x from remote commitment",
log.Infof("ChannelArbitrator(%v): fail dangling htlc=%x from "+
"local/remote commitments diff",
c.cfg.ChanPoint, htlc.RHash[:])
actionMap[HtlcFailNowAction] = append(
@ -1949,8 +1949,8 @@ func (c *ChannelArbitrator) checkRemoteDiffActions(height uint32,
actionMap[HtlcFailNowAction], htlc,
)
log.Infof("ChannelArbitrator(%v): immediately failing "+
"htlc=%x from remote commitment",
log.Infof("ChannelArbitrator(%v): fail dangling htlc=%x from "+
"remote commitments diff",
c.cfg.ChanPoint, htlc.RHash[:])
}