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

omit data for GET_ messages and their responses #2

Closed zzma closed 6 years ago

zzma commented 6 years ago

In order to reduce log size, omit msg-specific data for the following message types:

GetBlockHeaders
BlockHeaders
GetBlockBodies
BlockBodies
GetNodeData
NodeData
GetReceipts
Receipts
SimonSK commented 6 years ago

If we don't care about the data of messages other than p2p hello and eth status, maybe exclude Transactions and NewBlock data as well.

sid1602 commented 6 years ago

Looks good, we'll have to see if we need to cut more stuff out of logging, depending on the size.