diff options
| author | Gregory Maxwell <[email protected]> | 2012-06-14 09:48:10 -0700 |
|---|---|---|
| committer | Gregory Maxwell <[email protected]> | 2012-06-14 09:48:10 -0700 |
| commit | 194ea3186a3331768650629826a9c6db6db84e82 (patch) | |
| tree | ab94565245c3e97c40165109c0dc8b445bad32ae /src/main.cpp | |
| parent | Merge pull request #1459 from laanwj/2012_06_trayiconmenu (diff) | |
| parent | Use a 64-bit nonce in ping (diff) | |
| download | discoin-194ea3186a3331768650629826a9c6db6db84e82.tar.xz discoin-194ea3186a3331768650629826a9c6db6db84e82.zip | |
Merge pull request #1463 from sipa/fix_1455
Use a 64-bit nonce in ping
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index fa3eb592a..be2733192 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3013,8 +3013,9 @@ bool SendMessages(CNode* pto, bool fSendTrickle) // Keep-alive ping. We send a nonce of zero because we don't use it anywhere // right now. if (pto->nLastSend && GetTime() - pto->nLastSend > 30 * 60 && pto->vSend.empty()) { + uint64 nonce = 0; if (pto->nVersion > BIP0031_VERSION) - pto->PushMessage("ping", 0); + pto->PushMessage("ping", nonce); else pto->PushMessage("ping"); } |