From c16c7d262a079d0cbb662b889cce5113eceb41be Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 22 Oct 2014 18:44:15 -0700 Subject: [PATCH] no segfault for getheaders. --- src/bitcoindjs.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bitcoindjs.cc b/src/bitcoindjs.cc index 665cee92..88f89d8c 100644 --- a/src/bitcoindjs.cc +++ b/src/bitcoindjs.cc @@ -3595,7 +3595,6 @@ NAN_METHOD(HookPackets) { o->Set(NanNew("toHash"), NanNew( hashStop == uint256(0) ? "end" : hashStop.GetHex().c_str())); o->Set(NanNew("limit"), NanNew(500)); -#if 0 } else if (strCommand == "getheaders") { CBlockLocator locator; uint256 hashStop; @@ -3622,6 +3621,7 @@ NAN_METHOD(HookPackets) { o->Set(NanNew("fromHeight"), NanNew(pindex ? pindex->nHeight : -1)); o->Set(NanNew("toHash"), NanNew(hashStop.GetHex().c_str())); +#if 0 } else if (strCommand == "tx") { // XXX Potentially check for "reject" in original code CTransaction tx;