Fixed finding txs after sending.

This commit is contained in:
Chris Kleeschulte 2017-11-02 11:59:06 -04:00
parent f604e4ca94
commit 725b58cd15
No known key found for this signature in database
GPG Key ID: 33195D27EF6BDB7F
2 changed files with 3 additions and 3 deletions

View File

@ -60,7 +60,7 @@ AddressService.prototype.getAddressHistory = function(addresses, options, callba
addresses = [addresses];
}
async.mapLimit(addresses, 4, function(address, next) {
async.mapSeries(addresses, function(address, next) {
self._getAddressHistory(address, options, next);
@ -451,7 +451,7 @@ AddressService.prototype._getAddressHistory = function(address, options, callbac
if (mempoolTxs.length <= 0) {
return next();
}
async.mapLimit(mempoolTxs, 4, function(tx, next) {
async.mapSeries(mempoolTxs, 4, function(tx, next) {
self._transaction.setTxMetaInfo(tx, options, next);
}, function(err, txs) {
if (err) {

View File

@ -226,7 +226,7 @@ MempoolService.prototype._onTransaction = function(tx) {
value: self._encoding.encodeMempoolTransactionValue(tx)
}];
ops.concat(self._getAddressOperations(tx, true));
ops = ops.concat(self._getAddressOperations(tx, true));
self._db.batch(ops, function(err) {
if(err) {
log.error(err);