From c09293bb4d8a04a1af8d1b2cb77018d3eca65dea Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 22 Oct 2014 16:34:28 -0700 Subject: [PATCH] "getblocks" compiling. --- src/bitcoindjs.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bitcoindjs.cc b/src/bitcoindjs.cc index 3aae0233..f6820847 100644 --- a/src/bitcoindjs.cc +++ b/src/bitcoindjs.cc @@ -3576,7 +3576,6 @@ NAN_METHOD(HookPackets) { if (vInv.size() > 0) { o->Set(NanNew("first"), NanNew(vInv[0].ToString().c_str())); } -#if 0 } else if (strCommand == "getblocks") { CBlockLocator locator; uint256 hashStop; @@ -3592,10 +3591,11 @@ NAN_METHOD(HookPackets) { pindex = chainActive.Next(pindex); } - o->Set(NanNew("fromHeight"), NanNew(pindex ? pindex->nHeight : -1); + o->Set(NanNew("fromHeight"), NanNew(pindex ? pindex->nHeight : -1)); o->Set(NanNew("toHash"), NanNew( hashStop == uint256(0) ? "end" : hashStop.GetHex().c_str())); - o->Set(NanNew("limit"), NanNew(nLimit)); + o->Set(NanNew("limit"), NanNew(500)); +#if 0 } else if (strCommand == "getheaders") { CBlockLocator locator; uint256 hashStop;