MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / IsOutboundMessageAllowedInPrivateBroadcast

Function IsOutboundMessageAllowedInPrivateBroadcast

src/net.cpp:4131–4138  ·  view source on GitHub ↗

Private broadcast connections only need to send certain message types. Other messages are not needed and may degrade privacy.

Source from the content-addressed store, hash-verified

4129/// Private broadcast connections only need to send certain message types.
4130/// Other messages are not needed and may degrade privacy.
4131static bool IsOutboundMessageAllowedInPrivateBroadcast(std::string_view type) noexcept
4132{
4133 return type == NetMsgType::VERSION ||
4134 type == NetMsgType::VERACK ||
4135 type == NetMsgType::INV ||
4136 type == NetMsgType::TX ||
4137 type == NetMsgType::PING;
4138}
4139
4140void CConnman::PushMessage(CNode* pnode, CSerializedNetMsg&& msg)
4141{

Callers 1

PushMessageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected