"getheaders" compiling.

This commit is contained in:
Christopher Jeffrey 2014-10-22 16:35:26 -07:00
parent c09293bb4d
commit 3d2d017221
1 changed files with 2 additions and 2 deletions

View File

@ -3595,7 +3595,6 @@ NAN_METHOD(HookPackets) {
o->Set(NanNew<String>("toHash"), NanNew<String>(
hashStop == uint256(0) ? "end" : hashStop.GetHex().c_str()));
o->Set(NanNew<String>("limit"), NanNew<Number>(500));
#if 0
} else if (strCommand == "getheaders") {
CBlockLocator locator;
uint256 hashStop;
@ -3620,8 +3619,9 @@ NAN_METHOD(HookPackets) {
}
}
o->Set(NanNew<String>("fromHeight"), pindex ? pindex->nHeight : -1);
o->Set(NanNew<String>("fromHeight"), NanNew<Number>(pindex ? pindex->nHeight : -1));
o->Set(NanNew<String>("toHash"), NanNew<String>(hashStop.GetHex().c_str()));
#if 0
} else if (strCommand == "tx") {
// XXX Potentially check for "reject" in original code
CTransaction tx;