MCPcopy Create free account
hub / github.com/ElementsProject/elements / SetCommonVersion

Method SetCommonVersion

src/net.h:637–641  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

635 bool ReceiveMsgBytes(Span<const uint8_t> msg_bytes, bool& complete);
636
637 void SetCommonVersion(int greatest_common_version)
638 {
639 Assume(m_greatest_common_version == INIT_PROTO_VERSION);
640 m_greatest_common_version = greatest_common_version;
641 }
642 int GetCommonVersion() const
643 {
644 return m_greatest_common_version;

Callers 4

ProcessMessageMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
AddRandomOutboundPeerFunction · 0.80
FUZZ_TARGET_INITFunction · 0.80

Calls

no outgoing calls

Tested by 3

BOOST_AUTO_TEST_CASEFunction · 0.64
AddRandomOutboundPeerFunction · 0.64
FUZZ_TARGET_INITFunction · 0.64