diff --git a/peer/log.go b/peer/log.go index 7469fd86..71bebd0d 100644 --- a/peer/log.go +++ b/peer/log.go @@ -199,6 +199,14 @@ func messageSummary(msg wire.Message) string { case *wire.MsgHeaders: return fmt.Sprintf("num %d", len(msg.Headers)) + case *wire.MsgGetCFHeaders: + return fmt.Sprintf("start_height=%d, stop_hash=%v", + msg.StartHeight, msg.StopHash) + + case *wire.MsgCFHeaders: + return fmt.Sprintf("stop_hash=%v, num_filter_hashes=%d", + msg.StopHash, len(msg.FilterHashes)) + case *wire.MsgReject: // Ensure the variable length strings don't contain any // characters which are even remotely dangerous such as HTML