fix getLocks and wallet zapping.

This commit is contained in:
Christopher Jeffrey 2016-04-03 02:13:36 -07:00
parent debf082fb5
commit 32e94429d3
2 changed files with 3 additions and 1 deletions

View File

@ -2036,7 +2036,7 @@ Chain.prototype.getLocks = function getLocks(tx, flags, entry, callback) {
return next();
coinHeight = input.coin.height === -1
? self.chain.tip + 1
? self.height + 1
: input.coin.height;
if ((input.sequence & typeFlag) === 0) {

View File

@ -1794,6 +1794,8 @@ TXPool.prototype.zap = function zap(address, now, age, callback, force) {
return callback(err);
utils.forEachSerial(txs, function(tx, next) {
if (tx.ts !== 0)
return next();
self.lazyRemove(tx, next);
}, callback);
});