diff --git a/src/bitcoindjs.cc b/src/bitcoindjs.cc index 74d3d045..e1f0f6d0 100644 --- a/src/bitcoindjs.cc +++ b/src/bitcoindjs.cc @@ -3614,7 +3614,13 @@ NAN_METHOD(HookPackets) { o->Set(NanNew("fromHeight"), pindex ? pindex->nHeight : -1); o->Set(NanNew("toHash"), NanNew(hashStop.GetHex().c_str())); } else if (strCommand == "tx") { - ; + // XXX Potentially check for "reject" in original code + CTransaction tx; + cur->vRecv >> tx; + Local jstx = NanNew(); + ctx_to_jstx(tx, 0, jstx); + // ctx_to_jstx(tx, 0, o); + o->Set(NanNew("tx"), jstx); // } else if (strCommand == "block" && !fImporting && !fReindex) { } else if (strCommand == "block") { ;