| 805 | } |
| 806 | |
| 807 | int 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 | |
| 820 | int CNetMessage::readHeader(const char *pch, unsigned int nBytes) |
no test coverage detected