diff --git a/src/init.cpp b/src/init.cpp index 8e96d80a8816f3..b5941edadf2a33 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -943,6 +943,7 @@ bool AppInitParameterInteraction(const ArgsManager& args) if (cmd.has_value() && cmd.value() == "only") { nLocalServices = ServiceFlags(nLocalServices | NODE_P2P_V2); g_v2_only = true; + LogPrintf("### BLANKET V2 ONLY OPTION SET\n"); } } diff --git a/src/net.cpp b/src/net.cpp index 2b57a6792ec5a1..c8114190ee42b7 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -1794,6 +1794,7 @@ void CConnman::CreateNodeFromAcceptedSocket(std::unique_ptr&& sock, const bool use_v2transport(nLocalServices & NODE_P2P_V2); if (g_v2_only && !use_v2transport) { + LogPrintf("### 1. CreateNodeFromAcceptedSocket(): INBOUND CONNECTION from %s is NOT V2 PEER\n", addr.ToStringAddrPort()); return; } @@ -1907,6 +1908,10 @@ void CConnman::DisconnectNodes() LogPrint(BCLog::NET, "retrying with v1 transport protocol for peer=%d\n", pnode->GetId()); } + if (g_v2_only && pnode->m_transport->ShouldReconnectV1()){ + LogPrintf("### 2. DisconnectNodes(): NOT RETRYING WITH V1 FOR %s\n", pnode->addr.ToStringAddrPort()); + } + // release outbound grant (if any) pnode->grantOutbound.Release(); @@ -2742,6 +2747,7 @@ void CConnman::ThreadOpenConnections(const std::vector connect) bool use_v2transport(addr.nServices & GetLocalServices() & NODE_P2P_V2); if (g_v2_only && !use_v2transport) { + LogPrintf("### 3. ThreadOpenConnections(): %s selected from addrman for making BLOCK + FEELER + OUTBOUND is NOT V2 - WE LOOP AGAIN FOR V2\n", addr.ToStringAddrPort()); continue; } @@ -2928,6 +2934,7 @@ void CConnman::OpenNetworkConnection(const CAddress& addrConnect, bool fCountFai return; if (g_v2_only && !use_v2transport) { + LogPrintf("### 4. OpenNetworkConnection(): %s is NOT V2 PEER\n", addrConnect.ToStringAddrPort()); return; }