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;