mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 06:58:57 +01:00
Merge #8049: Expose information on whether transaction relay is enabled in getnetwork
1ab1dc3rpc: Add `relaytxes` flag to `getnetworkinfo` (Wladimir J. van der Laan)581ddffnet: Add fRelayTxes flag (Wladimir J. van der Laan)
This commit is contained in:
@@ -76,6 +76,7 @@ const static std::string NET_MESSAGE_COMMAND_OTHER = "*other*";
|
||||
bool fDiscover = true;
|
||||
bool fListen = true;
|
||||
uint64_t nLocalServices = NODE_NETWORK;
|
||||
bool fRelayTxes = true;
|
||||
CCriticalSection cs_mapLocalHost;
|
||||
std::map<CNetAddr, LocalServiceInfo> mapLocalHost;
|
||||
static bool vfLimited[NET_MAX] = {};
|
||||
@@ -470,7 +471,7 @@ void CNode::PushVersion()
|
||||
else
|
||||
LogPrint("net", "send version message: version %d, blocks=%d, us=%s, peer=%d\n", PROTOCOL_VERSION, nBestHeight, addrMe.ToString(), id);
|
||||
PushMessage(NetMsgType::VERSION, PROTOCOL_VERSION, nLocalServices, nTime, addrYou, addrMe,
|
||||
nLocalHostNonce, strSubVersion, nBestHeight, !GetBoolArg("-blocksonly", DEFAULT_BLOCKSONLY));
|
||||
nLocalHostNonce, strSubVersion, nBestHeight, fRelayTxes);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user