diff options
author | Warren Togami <wtogami@gmail.com> | 2013-10-25 23:21:21 -1000 |
---|---|---|
committer | Warren Togami <wtogami@gmail.com> | 2013-10-25 23:46:37 -1000 |
commit | 1ce418929a17c063a0a2e3b176b82d280ef053a6 (patch) | |
tree | 50370fb2ae945912b23814c6c1bc0e6a3ca9e4bb /src/net.h | |
parent | 0d09b3e8b0218169ab7ad2aa787c43ea11bc7060 (diff) |
Split MIN_PROTO_VERSION into INIT_PROTO_VERSION and MIN_PEER_PROTO_VERSION
INIT_PROTO_VERSION is the initial version, after a succesful version/verack it is increased to a negotiated version.
MIN_PEER_PROTO_VERSION could be a different value to disconnect from peers older than a specified version.
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -243,11 +243,11 @@ public: int64 nPingUsecTime; bool fPingQueued; - CNode(SOCKET hSocketIn, CAddress addrIn, std::string addrNameIn = "", bool fInboundIn=false) : ssSend(SER_NETWORK, MIN_PROTO_VERSION) + CNode(SOCKET hSocketIn, CAddress addrIn, std::string addrNameIn = "", bool fInboundIn=false) : ssSend(SER_NETWORK, INIT_PROTO_VERSION) { nServices = 0; hSocket = hSocketIn; - nRecvVersion = MIN_PROTO_VERSION; + nRecvVersion = INIT_PROTO_VERSION; nLastSend = 0; nLastRecv = 0; nSendBytes = 0; |