mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-28 06:56:59 +02:00
peer: add message summaries for ping+pong
This commit is contained in:
@@ -1632,12 +1632,10 @@ func messageSummary(msg lnwire.Message) string {
|
|||||||
msg.NodeID, time.Unix(int64(msg.Timestamp), 0))
|
msg.NodeID, time.Unix(int64(msg.Timestamp), 0))
|
||||||
|
|
||||||
case *lnwire.Ping:
|
case *lnwire.Ping:
|
||||||
// No summary.
|
return fmt.Sprintf("ping_bytes=%x", msg.PaddingBytes[:])
|
||||||
return ""
|
|
||||||
|
|
||||||
case *lnwire.Pong:
|
case *lnwire.Pong:
|
||||||
// No summary.
|
return fmt.Sprintf("pong_bytes=%x", msg.PongBytes[:])
|
||||||
return ""
|
|
||||||
|
|
||||||
case *lnwire.UpdateFee:
|
case *lnwire.UpdateFee:
|
||||||
return fmt.Sprintf("chan_id=%v, fee_update_sat=%v",
|
return fmt.Sprintf("chan_id=%v, fee_update_sat=%v",
|
||||||
|
Reference in New Issue
Block a user