diff --git a/src/bitcoindjs.cc b/src/bitcoindjs.cc index 54387bec..4a21b178 100644 --- a/src/bitcoindjs.cc +++ b/src/bitcoindjs.cc @@ -3629,14 +3629,14 @@ NAN_METHOD(HookPackets) { ctx_to_jstx(tx, 0, jstx); // ctx_to_jstx(tx, 0, o); o->Set(NanNew("tx"), jstx); -#if 0 } else if (strCommand == "block") { // && !fImporting && !fReindex) { CBlock block; *cur->vRecv >> block; - Local jstx = NanNew(); + Local jsblock = NanNew(); cblock_to_jsblock(block, 0, jsblock); // cblock_to_jsblock(block, 0, o); - o->Set(NanNew("tx"), jstx); + o->Set(NanNew("block"), jsblock); +#if 0 } else if (strCommand == "getaddr") { ; // not much other information in getaddr as long as we know we got a getaddr } else if (strCommand == "mempool") {