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.
This commit is contained in:
Jeff Garzik
2012-04-11 12:38:03 -04:00
committed by Jeff Garzik
parent 940e22fd81
commit 93e447b631
2 changed files with 28 additions and 3 deletions

View File

@@ -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