3409 | @@ -3410,9 +3410,10 @@ void PeerManagerImpl::ProcessMessage(CNode& pfrom, const std::string& msg_type,
3410 | }
3411 |
3412 | if (!pfrom.IsInboundConn()) {
3413 | - LogPrintf("New outbound peer connected: version: %d, blocks=%d, peer=%d%s (%s)\n",
3414 | + LogPrintf("New outbound peer connected: version: %d, blocks=%d, peer=%d%s%s (%s)\n",
3415 | pfrom.nVersion.load(), peer->m_starting_height,
3416 | pfrom.GetId(), (fLogIPs ? strprintf(", peeraddr=%s", pfrom.addr.ToStringAddrPort()) : ""),
3417 | + (log_asmap ? strprintf(", mapped_as=%d", m_connman.GetMappedAS(pfrom.addr)) : ""),
Concept ACK, but would there be any downside to not adding a config option and just logging the asmap if it is non-zero? Edit: this would also avoid the need for a release note.
Yeah, that does make more sense. I don't see any harm in automatically logging the asmap information if the fLogIPs flag is true.
Yeah, I think it would be simpler to remove the new flag I created and log it when using -asmap.