fix. cleanup.

This commit is contained in:
Christopher Jeffrey 2014-09-23 14:01:10 -07:00
parent 288cac6e63
commit 9eb7eefe0f
2 changed files with 2 additions and 2 deletions

View File

@ -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() {

View File

@ -892,7 +892,6 @@ async_poll_mempool_after(uv_work_t *req) {
std::map<uint256, CTxMemPoolEntry>::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<Object> entry = NanNew<Object>();
ctx_to_js(tx, 0, entry);
txs->Set(ti, entry);
@ -904,7 +903,6 @@ async_poll_mempool_after(uv_work_t *req) {
std::map<COutPoint, CInPoint>::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<Object> entry = NanNew<Object>();
ctx_to_js(tx, 0, entry);
txs->Set(ti, entry);