"getheaders" compiling.
This commit is contained in:
parent
c09293bb4d
commit
3d2d017221
|
@ -3595,7 +3595,6 @@ NAN_METHOD(HookPackets) {
|
||||||
o->Set(NanNew<String>("toHash"), NanNew<String>(
|
o->Set(NanNew<String>("toHash"), NanNew<String>(
|
||||||
hashStop == uint256(0) ? "end" : hashStop.GetHex().c_str()));
|
hashStop == uint256(0) ? "end" : hashStop.GetHex().c_str()));
|
||||||
o->Set(NanNew<String>("limit"), NanNew<Number>(500));
|
o->Set(NanNew<String>("limit"), NanNew<Number>(500));
|
||||||
#if 0
|
|
||||||
} else if (strCommand == "getheaders") {
|
} else if (strCommand == "getheaders") {
|
||||||
CBlockLocator locator;
|
CBlockLocator locator;
|
||||||
uint256 hashStop;
|
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()));
|
o->Set(NanNew<String>("toHash"), NanNew<String>(hashStop.GetHex().c_str()));
|
||||||
|
#if 0
|
||||||
} else if (strCommand == "tx") {
|
} else if (strCommand == "tx") {
|
||||||
// XXX Potentially check for "reject" in original code
|
// XXX Potentially check for "reject" in original code
|
||||||
CTransaction tx;
|
CTransaction tx;
|
||||||
|
|
Loading…
Reference in New Issue