peer: add message summaries for ClosingSig+ClosingComplete

This commit is contained in:
Olaoluwa Osuntokun
2024-03-05 00:05:14 -06:00
parent 7714994d09
commit 60eac1cd0d

View File

@@ -2199,6 +2199,13 @@ func messageSummary(msg lnwire.Message) string {
return fmt.Sprintf("chan_id=%v, script=%x", msg.ChannelID,
msg.Address[:])
case *lnwire.ClosingComplete:
return fmt.Sprintf("chan_id=%v, fee_sat=%v, sequence=%v",
msg.ChannelID, msg.FeeSatoshis, msg.Sequence)
case *lnwire.ClosingSig:
return fmt.Sprintf("chan_id=%v", msg.ChannelID)
case *lnwire.ClosingSigned:
return fmt.Sprintf("chan_id=%v, fee_sat=%v", msg.ChannelID,
msg.FeeSatoshis)