From 9eb7eefe0f3cb5c30564c3503db8c524c407f81e Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Tue, 23 Sep 2014 14:01:10 -0700 Subject: [PATCH] fix. cleanup. --- lib/bitcoind.js | 2 ++ src/bitcoindjs.cc | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bitcoind.js b/lib/bitcoind.js index b97f274d..f869c032 100644 --- a/lib/bitcoind.js +++ b/lib/bitcoind.js @@ -162,6 +162,7 @@ Bitcoin.prototype.start = function(callback) { }; Bitcoin.prototype._pollBlocks = function() { + var self = this; if (this._pollingBlocks) return; this._pollingBlocks = true; (function next() { @@ -196,6 +197,7 @@ Bitcoin.prototype._pollBlocks = function() { }; Bitcoin.prototype._pollMempool = function() { + var self = this; if (this._pollingMempool) return; this._pollingMempool = true; (function next() { diff --git a/src/bitcoindjs.cc b/src/bitcoindjs.cc index 5aeb427c..5b8a0463 100644 --- a/src/bitcoindjs.cc +++ b/src/bitcoindjs.cc @@ -892,7 +892,6 @@ async_poll_mempool_after(uv_work_t *req) { std::map::const_iterator it = mempool.mapTx.begin(); for (; it != mempool.mapTx.end(); it++) { const CTransaction& tx = it->second.GetTx(); - // uint256 hash = it->second.GetTx().GetHash(); Local entry = NanNew(); ctx_to_js(tx, 0, entry); txs->Set(ti, entry); @@ -904,7 +903,6 @@ async_poll_mempool_after(uv_work_t *req) { std::map::const_iterator it = mempool.mapNextTx.begin(); for (; it != mempool.mapNextTx.end(); it++) { const CTransaction tx = *it->second.ptx; - // uint256 hash = it->second.ptx->GetHash(); Local entry = NanNew(); ctx_to_js(tx, 0, entry); txs->Set(ti, entry);