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

Method AdvertisedVersion

src/net.h:836–839  ·  view source on GitHub ↗

Protocol version advertised in our VERSION message. * Private broadcast connections use a fixed version to maximise anonymity. */

Source from the content-addressed store, hash-verified

834 /** Protocol version advertised in our VERSION message.
835 * Private broadcast connections use a fixed version to maximise anonymity. */
836 int AdvertisedVersion() const
837 {
838 return IsPrivateBroadcastConn() ? WTXID_RELAY_VERSION : PROTOCOL_VERSION;
839 }
840
841 bool IsInboundConn() const {
842 return m_conn_type == ConnectionType::INBOUND;

Callers 3

PushNodeVersionMethod · 0.80
ProcessMessageMethod · 0.80
HandshakeMethod · 0.80

Calls

no outgoing calls

Tested by 1

HandshakeMethod · 0.64