no segfault for getheaders.
This commit is contained in:
parent
8aa289003f
commit
c16c7d262a
|
@ -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;
|
||||||
|
@ -3622,6 +3621,7 @@ NAN_METHOD(HookPackets) {
|
||||||
|
|
||||||
o->Set(NanNew<String>("fromHeight"), NanNew<Number>(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