mempool: logs.

This commit is contained in:
Christopher Jeffrey 2016-07-25 15:49:14 -07:00
parent 3f874b31e5
commit 8ba429d76c
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -905,7 +905,7 @@ Mempool.prototype.removeUnchecked = function removeUnchecked(entry, limit, callb
self.fees.removeTX(hash);
if (limit) {
self.logger.debug('Removed tx %s from mempool.', entry.tx.rhash);
self.logger.spam('Removed tx %s from mempool.', entry.tx.rhash);
rate = bcoin.tx.getRate(entry.sizes, entry.fees);
rate += self.minReasonableFee;
if (rate > self.minFeeRate) {
@ -913,7 +913,7 @@ Mempool.prototype.removeUnchecked = function removeUnchecked(entry, limit, callb
self.blockSinceBump = false;
}
} else {
self.logger.debug('Removed block tx %s from mempool.', entry.tx.rhash);
self.logger.spam('Removed block tx %s from mempool.', entry.tx.rhash);
}
self.emit('remove tx', entry.tx);