fix limitOrphans.
This commit is contained in:
parent
0b6f86c9d5
commit
c37a069978
@ -388,7 +388,10 @@ Mempool.prototype.limitOrphans = function limitOrphans(callback) {
|
||||
var orphans = Object.keys(this.orphans);
|
||||
var i, hash;
|
||||
|
||||
(function next() {
|
||||
(function next(err) {
|
||||
if (err)
|
||||
return callback(err);
|
||||
|
||||
if (self.totalOrphans <= constants.mempool.MAX_ORPHAN_TX)
|
||||
return callback();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user