mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-18 03:21:45 +02:00
peer: add message summaries for ClosingSig+ClosingComplete
This commit is contained in:
@@ -2199,6 +2199,13 @@ func messageSummary(msg lnwire.Message) string {
|
|||||||
return fmt.Sprintf("chan_id=%v, script=%x", msg.ChannelID,
|
return fmt.Sprintf("chan_id=%v, script=%x", msg.ChannelID,
|
||||||
msg.Address[:])
|
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:
|
case *lnwire.ClosingSigned:
|
||||||
return fmt.Sprintf("chan_id=%v, fee_sat=%v", msg.ChannelID,
|
return fmt.Sprintf("chan_id=%v, fee_sat=%v", msg.ChannelID,
|
||||||
msg.FeeSatoshis)
|
msg.FeeSatoshis)
|
||||||
|
Reference in New Issue
Block a user