diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-12-18 10:02:53 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-12-18 10:02:55 +0100 |
commit | 83e4670fd7cde3f9624d91208885e868fda6658f (patch) | |
tree | e224105d9fe7a91d98223d8b6c80bdd4f2bc77c8 | |
parent | 20f4a9421ba644a1a1443aa16feb0aa481a0974f (diff) | |
parent | 6d1e85f475a8af3ca0e094ed101dc19704e5ab74 (diff) | |
download | bitcoin-83e4670fd7cde3f9624d91208885e868fda6658f.tar.xz |
Merge #20690: Clean up logging of outbound connection type
6d1e85f475a8af3ca0e094ed101dc19704e5ab74 Clean up logging of outbound connection type (Suhas Daftuar)
Pull request description:
We have a function that converts `ConnectionType` enums to strings, so use it.
Suggested by ajtowns in https://github.com/bitcoin/bitcoin/pull/19858#discussion_r540791588
ACKs for top commit:
amitiuttarwar:
ACK 6d1e85f475a8af3ca0e094ed101dc19704e5ab74
naumenkogs:
ACK 6d1e85f
Tree-SHA512: f5084d8b5257380696d9fde86a8873e190cd4553feb07fa49df39bbd9510bf5832d190a3bca1571c48370d16a17c7a34900857b21b27bec0777bfa710211d7bb
-rw-r--r-- | src/net_processing.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 17aa889ab0..06fffe5148 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -2476,7 +2476,7 @@ void PeerManager::ProcessMessage(CNode& pfrom, const std::string& msg_type, CDat LogPrintf("New outbound peer connected: version: %d, blocks=%d, peer=%d%s (%s)\n", pfrom.nVersion.load(), pfrom.nStartingHeight, pfrom.GetId(), (fLogIPs ? strprintf(", peeraddr=%s", pfrom.addr.ToString()) : ""), - pfrom.IsBlockOnlyConn() ? "block-relay" : "full-relay"); + pfrom.ConnectionTypeAsString()); } if (pfrom.GetCommonVersion() >= SENDHEADERS_VERSION) { |