Private broadcast connections only need to send certain message types. Other messages are not needed and may degrade privacy.
| 4129 | /// Private broadcast connections only need to send certain message types. |
| 4130 | /// Other messages are not needed and may degrade privacy. |
| 4131 | static 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 | |
| 4140 | void CConnman::PushMessage(CNode* pnode, CSerializedNetMsg&& msg) |
| 4141 | { |