diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-01-29 07:44:06 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-01-29 07:44:22 +0100 |
commit | c8b83510f42c6959c2844b8b81a6590dd3a34e65 (patch) | |
tree | af6aabe71bf8863a7ee7638d0cb0ad9ab19a618b /src/addrman.cpp | |
parent | 40dd757bf6ce1ae81599af4d204e210583b7c7bc (diff) | |
parent | 48c8a9b96453ca429b38fc5d5181a310ae5a93bf (diff) | |
download | bitcoin-c8b83510f42c6959c2844b8b81a6590dd3a34e65.tar.xz |
Merge #20724: Cleanup of -debug=net log messages
48c8a9b96453ca429b38fc5d5181a310ae5a93bf net_processing: log txrelay flag from version message (Anthony Towns)
98fab37ca0517bfe58296e47266cd5bd112e90bf net: use peer=N instead of from=N in debug log (Anthony Towns)
12302105bb0bf14721e91b7a3a9d1bf83c8d4154 net_processing: additional debug logging for ignored messages (Anthony Towns)
f7edea3b7c873d6c9bcd50cf528349ef84961a75 net: make debug logging conditional on -debug=net (Anthony Towns)
a410ae8cb09f1b809755316566f9e6bccd41c0c4 net, net_processing: log disconnect reasons with -debug=net (Anthony Towns)
Pull request description:
A few changes to -debug=net logging:
* always log when disconnecting a peer
* only log various connection errors when -debug=net is enabled, since errors from random untrusted peers is completely expected
* log when ignoring a message due to violating protocol (primarily to make it easier to debug other implementations)
* use "peer=123" rather than "from 123" to make grepping logs a bit easier
* log the value of the bip-37 `fRelay` field in version messages both when sending and receiving a version message
ACKs for top commit:
jnewbery:
ACK 48c8a9b96453ca429b38fc5d5181a310ae5a93bf
MarcoFalke:
re-ACK 48c8a9b96453ca429b38fc5d5181a310ae5a93bf only change is rebase 🚓
practicalswift:
re-ACK 48c8a9b96453ca429b38fc5d5181a310ae5a93bf
Tree-SHA512: 6ac530d883dffc4fd7fe20b1dc5ebb5394374c9b499aa7a253eb4a3a660d8901edd72e5ad21ce4a2bf71df25e8f142087755f9756f3497f564ef453a7e9246c1
Diffstat (limited to 'src/addrman.cpp')
0 files changed, 0 insertions, 0 deletions