From 4b4cbcc51fe4c3c02445392314994056fd667bc2 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 22 Oct 2014 18:53:58 -0700 Subject: [PATCH] "ping" not causing segfault or coredump. --- src/bitcoindjs.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bitcoindjs.cc b/src/bitcoindjs.cc index 3cd6639b..d60d097b 100644 --- a/src/bitcoindjs.cc +++ b/src/bitcoindjs.cc @@ -3642,7 +3642,6 @@ NAN_METHOD(HookPackets) { ; // not much other information in getaddr as long as we know we got a getaddr } else if (strCommand == "mempool") { ; // not much other information in getaddr as long as we know we got a getaddr -#if 0 } else if (strCommand == "ping") { if (cur->pfrom->nVersion > BIP0031_VERSION) { uint64_t nonce = 0; @@ -3657,6 +3656,7 @@ NAN_METHOD(HookPackets) { assert(written == 20); o->Set(NanNew("nonce"), NanNew(sNonce)); } +#if 0 } else if (strCommand == "pong") { int64_t pingUsecEnd = cur->nTimeReceived; uint64_t nonce = 0;