@@ -422,7 +422,7 @@ static void PushNodeVersion(CNode *pnode, CConnman* connman, int64_t nTime)
422422 CAddress addrMe = CAddress (CService (), nLocalNodeServices);
423423
424424 connman->PushMessage (pnode, CNetMsgMaker (INIT_PROTO_VERSION).Make (NetMsgType::VERSION, PROTOCOL_VERSION, (uint64_t )nLocalNodeServices, nTime, addrYou, addrMe,
425- nonce, strSubVersion, nNodeStartingHeight, ::fRelayTxes ));
425+ nonce, strSubVersion, nNodeStartingHeight, ::g_relay_txes ));
426426
427427 if (fLogIPs ) {
428428 LogPrint (BCLog::NET, " send version message: version %d, blocks=%d, us=%s, them=%s, peer=%d\n " , PROTOCOL_VERSION, nNodeStartingHeight, addrMe.ToString (), addrYou.ToString (), nodeid);
@@ -2189,7 +2189,7 @@ bool static ProcessMessage(CNode* pfrom, const std::string& strCommand, CDataStr
21892189 return false ;
21902190 }
21912191
2192- bool fBlocksOnly = !fRelayTxes ;
2192+ bool fBlocksOnly = !g_relay_txes ;
21932193
21942194 // Allow whitelisted peers to send data other than blocks in blocks only mode if whitelistrelay is true
21952195 if (pfrom->fWhitelisted && gArgs .GetBoolArg (" -whitelistrelay" , DEFAULT_WHITELISTRELAY))
@@ -2445,7 +2445,7 @@ bool static ProcessMessage(CNode* pfrom, const std::string& strCommand, CDataStr
24452445 if (strCommand == NetMsgType::TX) {
24462446 // Stop processing the transaction early if
24472447 // We are in blocks only mode and peer is either not whitelisted or whitelistrelay is off
2448- if (!fRelayTxes && (!pfrom->fWhitelisted || !gArgs .GetBoolArg (" -whitelistrelay" , DEFAULT_WHITELISTRELAY)))
2448+ if (!g_relay_txes && (!pfrom->fWhitelisted || !gArgs .GetBoolArg (" -whitelistrelay" , DEFAULT_WHITELISTRELAY)))
24492449 {
24502450 LogPrint (BCLog::NET, " transaction sent in violation of protocol peer=%d\n " , pfrom->GetId ());
24512451 return true ;
0 commit comments