mirror of
https://github.com/btcsuite/btcd.git
synced 2024-11-19 01:40:07 +01:00
peer log: add MsgCFHeaders and MsgGetCFHeaders string representation
This commit is contained in:
parent
2a560b2036
commit
5e578f546f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user