From 3d2d017221ce39645d6c99011ff8afbed685c39c Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 22 Oct 2014 16:35:26 -0700 Subject: [PATCH] "getheaders" compiling. --- src/bitcoindjs.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bitcoindjs.cc b/src/bitcoindjs.cc index f6820847..cac20d76 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; @@ -3620,8 +3619,9 @@ NAN_METHOD(HookPackets) { } } - o->Set(NanNew("fromHeight"), pindex ? pindex->nHeight : -1); + 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;