diff --git a/src/bitcoindjs.cc b/src/bitcoindjs.cc index e1f0f6d0..4f127693 100644 --- a/src/bitcoindjs.cc +++ b/src/bitcoindjs.cc @@ -3623,7 +3623,12 @@ NAN_METHOD(HookPackets) { o->Set(NanNew("tx"), jstx); // } else if (strCommand == "block" && !fImporting && !fReindex) { } else if (strCommand == "block") { - ; + CBlock block; + cur->vRecv >> block; + Local jstx = NanNew(); + cblock_to_jsblock(block, 0, jsblock); + // cblock_to_jsblock(block, 0, o); + o->Set(NanNew("tx"), jstx); } else if (strCommand == "getaddr") { ; } else if (strCommand == "mempool") {