@@ -880,13 +880,14 @@ void PeerManagerImpl::PushNodeVersion(CNode& pnode, int64_t nTime)
880
880
CAddress (CService (), addr.nServices );
881
881
CAddress addrMe = CAddress (CService (), nLocalNodeServices);
882
882
883
+ const bool tx_relay = !m_ignore_incoming_txs && pnode.m_tx_relay != nullptr ;
883
884
m_connman.PushMessage (&pnode, CNetMsgMaker (INIT_PROTO_VERSION).Make (NetMsgType::VERSION, PROTOCOL_VERSION, (uint64_t )nLocalNodeServices, nTime, addrYou, addrMe,
884
- nonce, strSubVersion, nNodeStartingHeight, !m_ignore_incoming_txs && pnode. m_tx_relay != nullptr ));
885
+ nonce, strSubVersion, nNodeStartingHeight, tx_relay ));
885
886
886
887
if (fLogIPs ) {
887
- 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);
888
+ LogPrint (BCLog::NET, " send version message: version %d, blocks=%d, us=%s, them=%s, txrelay=%d, peer=%d\n " , PROTOCOL_VERSION, nNodeStartingHeight, addrMe.ToString (), addrYou.ToString (), tx_relay , nodeid);
888
889
} else {
889
- LogPrint (BCLog::NET, " send version message: version %d, blocks=%d, us=%s, peer=%d\n " , PROTOCOL_VERSION, nNodeStartingHeight, addrMe.ToString (), nodeid);
890
+ LogPrint (BCLog::NET, " send version message: version %d, blocks=%d, us=%s, txrelay=%d, peer=%d\n " , PROTOCOL_VERSION, nNodeStartingHeight, addrMe.ToString (), tx_relay , nodeid);
890
891
}
891
892
}
892
893
@@ -2642,9 +2643,9 @@ void PeerManagerImpl::ProcessMessage(CNode& pfrom, const std::string& msg_type,
2642
2643
if (fLogIPs )
2643
2644
remoteAddr = " , peeraddr=" + pfrom.addr .ToString ();
2644
2645
2645
- LogPrint (BCLog::NET, " receive version message: %s: version %d, blocks=%d, us=%s, peer=%d%s\n " ,
2646
+ LogPrint (BCLog::NET, " receive version message: %s: version %d, blocks=%d, us=%s, txrelay=%d, peer=%d%s\n " ,
2646
2647
cleanSubVer, pfrom.nVersion ,
2647
- peer->m_starting_height , addrMe.ToString (), pfrom.GetId (),
2648
+ peer->m_starting_height , addrMe.ToString (), fRelay , pfrom.GetId (),
2648
2649
remoteAddr);
2649
2650
2650
2651
int64_t nTimeOffset = nTime - GetTime ();
0 commit comments