fix. cleanup.
This commit is contained in:
parent
288cac6e63
commit
9eb7eefe0f
|
@ -162,6 +162,7 @@ Bitcoin.prototype.start = function(callback) {
|
||||||
};
|
};
|
||||||
|
|
||||||
Bitcoin.prototype._pollBlocks = function() {
|
Bitcoin.prototype._pollBlocks = function() {
|
||||||
|
var self = this;
|
||||||
if (this._pollingBlocks) return;
|
if (this._pollingBlocks) return;
|
||||||
this._pollingBlocks = true;
|
this._pollingBlocks = true;
|
||||||
(function next() {
|
(function next() {
|
||||||
|
@ -196,6 +197,7 @@ Bitcoin.prototype._pollBlocks = function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
Bitcoin.prototype._pollMempool = function() {
|
Bitcoin.prototype._pollMempool = function() {
|
||||||
|
var self = this;
|
||||||
if (this._pollingMempool) return;
|
if (this._pollingMempool) return;
|
||||||
this._pollingMempool = true;
|
this._pollingMempool = true;
|
||||||
(function next() {
|
(function next() {
|
||||||
|
|
|
@ -892,7 +892,6 @@ async_poll_mempool_after(uv_work_t *req) {
|
||||||
std::map<uint256, CTxMemPoolEntry>::const_iterator it = mempool.mapTx.begin();
|
std::map<uint256, CTxMemPoolEntry>::const_iterator it = mempool.mapTx.begin();
|
||||||
for (; it != mempool.mapTx.end(); it++) {
|
for (; it != mempool.mapTx.end(); it++) {
|
||||||
const CTransaction& tx = it->second.GetTx();
|
const CTransaction& tx = it->second.GetTx();
|
||||||
// uint256 hash = it->second.GetTx().GetHash();
|
|
||||||
Local<Object> entry = NanNew<Object>();
|
Local<Object> entry = NanNew<Object>();
|
||||||
ctx_to_js(tx, 0, entry);
|
ctx_to_js(tx, 0, entry);
|
||||||
txs->Set(ti, 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();
|
std::map<COutPoint, CInPoint>::const_iterator it = mempool.mapNextTx.begin();
|
||||||
for (; it != mempool.mapNextTx.end(); it++) {
|
for (; it != mempool.mapNextTx.end(); it++) {
|
||||||
const CTransaction tx = *it->second.ptx;
|
const CTransaction tx = *it->second.ptx;
|
||||||
// uint256 hash = it->second.ptx->GetHash();
|
|
||||||
Local<Object> entry = NanNew<Object>();
|
Local<Object> entry = NanNew<Object>();
|
||||||
ctx_to_js(tx, 0, entry);
|
ctx_to_js(tx, 0, entry);
|
||||||
txs->Set(ti, entry);
|
txs->Set(ti, entry);
|
||||||
|
|
Loading…
Reference in New Issue