From 6c0cfd17c032d5c56caa008b538fd3693dc9a14a Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 22 Oct 2014 19:06:24 -0700 Subject: [PATCH] still segfaulting even with bitcoin source if statement. --- src/bitcoindjs.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/bitcoindjs.cc b/src/bitcoindjs.cc index 9e17e361..db5a3a32 100644 --- a/src/bitcoindjs.cc +++ b/src/bitcoindjs.cc @@ -3629,15 +3629,13 @@ NAN_METHOD(HookPackets) { ctx_to_jstx(tx, 0, jstx); // ctx_to_jstx(tx, 0, o); o->Set(NanNew("tx"), jstx); -#if 0 - } else if (strCommand == "block") { // && !fImporting && !fReindex) { + } else if (strCommand == "block" && !fImporting && !fReindex) { CBlock block; *cur->vRecv >> block; Local jsblock = NanNew(); cblock_to_jsblock(block, 0, jsblock); // cblock_to_jsblock(block, 0, o); o->Set(NanNew("block"), jsblock); -#endif } else if (strCommand == "getaddr") { ; // not much other information in getaddr as long as we know we got a getaddr } else if (strCommand == "mempool") {