teamnsrg / ethereum-p2p

Official Go implementation of the Ethereum protocol
https://geth.ethereum.org
GNU Lesser General Public License v3.0
17 stars 9 forks source link

log message size in decimal #3

Closed SimonSK closed 6 years ago

SimonSK commented 6 years ago

Some message sizes are logged in hex because the size variable is uint32. According to the Go documentation, "uint, uint8 etc.: %d, %#x if printed with %#v". I casted it as int so that it is logged in decimal.