peer: add message summary for lnwire.ChannelReestablish

This commit is contained in:
Olaoluwa Osuntokun 2017-11-10 15:40:15 -08:00
parent 1d6e5ad1ef
commit 150ab00842
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21
1 changed files with 4 additions and 0 deletions

View File

@ -892,6 +892,10 @@ func messageSummary(msg lnwire.Message) string {
case *lnwire.UpdateFee:
return fmt.Sprintf("chan_id=%v, fee_update_sat=%v",
msg.ChanID, int64(msg.FeePerKw))
case *lnwire.ChannelReestablish:
return fmt.Sprintf("next_local_height=%v, remote_tail_height=%v",
msg.NextLocalCommitHeight, msg.RemoteCommitTailHeight)
}
return ""