diff options
| author | Jeff Garzik <[email protected]> | 2012-04-12 20:07:49 -0400 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2012-04-12 20:07:49 -0400 |
| commit | 8b09cd3a4db2d712e91826d44a0e777478b450c6 (patch) | |
| tree | 805a27b103f0c4a5da60ac7196bcc13a65930c42 /src/protocol.h | |
| parent | version.h: separate client, net sections. Move more constants to this file. (diff) | |
| download | discoin-8b09cd3a4db2d712e91826d44a0e777478b450c6.tar.xz discoin-8b09cd3a4db2d712e91826d44a0e777478b450c6.zip | |
Replace several network protocol version numbers with named constants
stored in version.h.
Also, a minor CAddress code reformat while we're in there, fixing
some incorrect indentation.
Diffstat (limited to 'src/protocol.h')
| -rw-r--r-- | src/protocol.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/protocol.h b/src/protocol.h index e63912735..a820563d0 100644 --- a/src/protocol.h +++ b/src/protocol.h @@ -79,9 +79,10 @@ class CAddress : public CService if (fRead) pthis->Init(); if (nType & SER_DISK) - READWRITE(nVersion); - if ((nType & SER_DISK) || (nVersion >= 31402 && !(nType & SER_GETHASH))) - READWRITE(nTime); + READWRITE(nVersion); + if ((nType & SER_DISK) || + (nVersion >= CADDR_TIME_VERSION && !(nType & SER_GETHASH))) + READWRITE(nTime); READWRITE(nServices); READWRITE(*pip); ) |