diff options
author | Peter Todd <pete@petertodd.org> | 2013-10-21 00:51:50 -0400 |
---|---|---|
committer | Peter Todd <pete@petertodd.org> | 2013-10-21 00:51:50 -0400 |
commit | 1e40c8fba58d31da0ce5991e897010ada15549cd (patch) | |
tree | 154b5878906997965b7c91edcd27089d6382cdd3 /bip-0031.mediawiki | |
parent | abc8fefe2fd78c8abbb539dad1cba4787fe202ee (diff) |
Archive Revision as of 15:14, 6 July 2012
https://en.bitcoin.it/w/index.php?title=BIP_0031&oldid=28445
Diffstat (limited to 'bip-0031.mediawiki')
-rw-r--r-- | bip-0031.mediawiki | 11 |
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]] |