aboutsummaryrefslogtreecommitdiff
path: root/src/version.h
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@exmulti.com>2012-04-11 12:38:03 -0400
committerJeff Garzik <jgarzik@redhat.com>2012-04-12 12:11:56 -0400
commit93e447b631440aee505a7c884a59c0885f9d968c (patch)
treef181ad15e894d774e2a0a505bf3b8dbcc9594a63 /src/version.h
parent940e22fd81af29dee6c07e413de1b446a21712b0 (diff)
downloadbitcoin-93e447b631440aee505a7c884a59c0885f9d968c.tar.xz
BIP 0031: pong message
Add a pong message that is sent in reply to a ping. It echoes back a nonce field that is now added to the ping message. Send a nonce of zero in ping messages. Original author: Mike Hearn @ Google Modified Mike's change to introduce a mild form of protocol documentation in version.h.
Diffstat (limited to 'src/version.h')
-rw-r--r--src/version.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/version.h b/src/version.h
index c93b28fb7d..e0e216aad4 100644
--- a/src/version.h
+++ b/src/version.h
@@ -11,4 +11,7 @@ extern const std::string CLIENT_BUILD;
extern const std::string CLIENT_DATE;
extern const int CLIENT_VERSION;
+// BIP 0031, pong message, is enabled for all versions AFTER this one
+const int BIP0031_VERSION = 60000;
+
#endif