Skip to content

Commit 41a1e10

Browse files
MarcoFalkeknst
authored andcommitted
Merge bitcoin#20690: Clean up logging of outbound connection type
6d1e85f 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 bitcoin#19858 (comment) ACKs for top commit: amitiuttarwar: ACK 6d1e85f naumenkogs: ACK 6d1e85f Tree-SHA512: f5084d8b5257380696d9fde86a8873e190cd4553feb07fa49df39bbd9510bf5832d190a3bca1571c48370d16a17c7a34900857b21b27bec0777bfa710211d7bb
1 parent 648d6f0 commit 41a1e10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net_processing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3281,7 +3281,7 @@ void PeerManagerImpl::ProcessMessage(
32813281
LogPrintf("New outbound peer connected: version: %d, blocks=%d, peer=%d%s (%s)\n",
32823282
pfrom.nVersion.load(), peer->m_starting_height,
32833283
pfrom.GetId(), (fLogIPs ? strprintf(", peeraddr=%s", pfrom.addr.ToString()) : ""),
3284-
pfrom.IsBlockOnlyConn()? "block-relay" : "full-relay");
3284+
pfrom.ConnectionTypeAsString());
32853285
}
32863286

32873287
if (!pfrom.m_masternode_probe_connection) {

0 commit comments

Comments
 (0)