MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / GetSendVersion

Method GetSendVersion

src/net.cpp:807–817  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

805}
806
807int CNode::GetSendVersion() const
808{
809 // The send version should always be explicitly set to
810 // INIT_PROTO_VERSION rather than using this value until SetSendVersion
811 // has been called.
812 if (nSendVersion == 0) {
813 error("Requesting unset send version for node: %i. Using %i", id, INIT_PROTO_VERSION);
814 return INIT_PROTO_VERSION;
815 }
816 return nSendVersion;
817}
818
819
820int CNetMessage::readHeader(const char *pch, unsigned int nBytes)

Callers 8

ProcessGetBlockDataFunction · 0.80
ProcessGetDataFunction · 0.80
SendBlockTransactionsFunction · 0.80
ProcessHeadersMessageFunction · 0.80
ProcessMessageFunction · 0.80
ConsiderEvictionMethod · 0.80
SendMessagesMethod · 0.80

Calls 1

errorFunction · 0.85

Tested by

no test coverage detected