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

Method SetCommonVersion

src/net.h:951–955  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

949 bool ReceiveMsgBytes(std::span<const uint8_t> msg_bytes, bool& complete) EXCLUSIVE_LOCKS_REQUIRED(!cs_vRecv);
950
951 void SetCommonVersion(int greatest_common_version)
952 {
953 Assume(m_greatest_common_version == INIT_PROTO_VERSION);
954 m_greatest_common_version = greatest_common_version;
955 }
956 int GetCommonVersion() const
957 {
958 return m_greatest_common_version;

Callers 6

ProcessMessageMethod · 0.80
AddPeerMethod · 0.80
AddRandomOutboundPeerMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
net.cppFile · 0.80
ConnectNodePublicMethod · 0.80

Calls

no outgoing calls

Tested by 4

AddPeerMethod · 0.64
AddRandomOutboundPeerMethod · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64
ConnectNodePublicMethod · 0.64