mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-03 09:56:38 -05:00
Merge #20690: Clean up logging of outbound connection type
6d1e85f475
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: ACK6d1e85f475
naumenkogs: ACK6d1e85f
Tree-SHA512: f5084d8b5257380696d9fde86a8873e190cd4553feb07fa49df39bbd9510bf5832d190a3bca1571c48370d16a17c7a34900857b21b27bec0777bfa710211d7bb
This commit is contained in:
commit
83e4670fd7
1 changed files with 1 additions and 1 deletions
|
@ -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",
|
LogPrintf("New outbound peer connected: version: %d, blocks=%d, peer=%d%s (%s)\n",
|
||||||
pfrom.nVersion.load(), pfrom.nStartingHeight,
|
pfrom.nVersion.load(), pfrom.nStartingHeight,
|
||||||
pfrom.GetId(), (fLogIPs ? strprintf(", peeraddr=%s", pfrom.addr.ToString()) : ""),
|
pfrom.GetId(), (fLogIPs ? strprintf(", peeraddr=%s", pfrom.addr.ToString()) : ""),
|
||||||
pfrom.IsBlockOnlyConn() ? "block-relay" : "full-relay");
|
pfrom.ConnectionTypeAsString());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pfrom.GetCommonVersion() >= SENDHEADERS_VERSION) {
|
if (pfrom.GetCommonVersion() >= SENDHEADERS_VERSION) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue