From 709ce37fff859ab1d2f35eefa73d979c44aa42b8 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Thu, 18 Dec 2014 14:24:06 -0800 Subject: [PATCH] fix CNodeStats. --- src/bitcoindjs.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bitcoindjs.cc b/src/bitcoindjs.cc index 6e446f5e..6fcd0979 100644 --- a/src/bitcoindjs.cc +++ b/src/bitcoindjs.cc @@ -3251,7 +3251,7 @@ NAN_METHOD(HookPackets) { Local jstx = NanNew(); ctx_to_jstx(tx, 0, jstx); o->Set(NanNew("tx"), jstx); - CNodeStatus stats; + CNodeStats stats; pfrom->copyStats(stats); jstx->Set(NanNew("from"), NanNew(stats.addrName)); if (!stats.addrLocal.empty()) { @@ -3264,7 +3264,7 @@ NAN_METHOD(HookPackets) { Local jsblock = NanNew(); cblock_to_jsblock(block, NULL, jsblock, true); o->Set(NanNew("block"), jsblock); - CNodeStatus stats; + CNodeStats stats; pfrom->copyStats(stats); jsblock->Set(NanNew("from"), NanNew(stats.addrName)); if (!stats.addrLocal.empty()) {