decred / dcrd

Decred daemon in Go (golang).
https://decred.org
ISC License
731 stars 288 forks source link

peer: Add mix message summary strings #3327

Closed jrick closed 3 months ago

jrick commented 3 months ago

This includes the message hash and the sender's identity in the short human-readable description of peer messages as they are debug logged.

While here and because mixing introduced a new inventory vector type, add it to the inv summary case statement.

jrick commented 3 months ago

we might want to add to this message as well:

return fmt.Sprintf("txns %d, blocks %d, other %d", numTxns, numBlocks, diff)