summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bip-0031.mediawiki11
1 files changed, 8 insertions, 3 deletions
diff --git a/bip-0031.mediawiki b/bip-0031.mediawiki
index 3252fca..8bff5c0 100644
--- a/bip-0031.mediawiki
+++ b/bip-0031.mediawiki
@@ -1,8 +1,10 @@
+{{bip}}
+
<pre>
BIP: 31
Title: Pong message
Author: Mike Hearn <hearn@google.com>
- Status: Draft
+ Status: Accepted
Type: Standards Track
Created: 11-04-2012
</pre>
@@ -25,15 +27,18 @@ All of these can be solved by a backwards compatible protocol modification.
==Specification==
-When the protocol version as negotiated in the "ver" message is greater than or equal to 70000, the "ping" message can contain a uint64 field called "nonce". A peer sending "ping" can set the nonce to a random value, and it is then echoed back by the recipient in a new "pong" message that also contains a single uint64 field.
+When the protocol version as negotiated in the "ver" message is greater than 60000, the "ping" message must contain a uint64 field called "nonce". A peer sending "ping" should set the nonce to a random value, and it is then echoed back by the recipient in a new "pong" message that also contains a single uint64 field.
In this way, the client can send a ping and measure the time taken to receive the corresponding pong. If a client sends two pings before hearing back the first pong, the responses can be distinguished using the nonce. If the client chooses to never overlap pings in this way it should simply set the nonce value to zero.
==Backward compatibility==
-Clients must opt-in to the new feature by advertising a protocol version >= 70000. Clients with older protocol versions are not expected to provide a nonce in the ping message and will not be sent a pong.
+Clients must opt-in to the new feature by advertising a protocol version > 60000. Clients with older protocol versions are not expected to provide a nonce in the ping message and will not be sent a pong.
==Implementation==
https://github.com/bitcoin/bitcoin/pull/932/files
+[[Category:Developer]]
+[[Category:Technical]]
+[[Category:BIP|D]]