logs.
This commit is contained in:
parent
6a4fce383e
commit
d38de71468
@ -355,7 +355,9 @@ PolicyEstimator.prototype.removeTX = function removeTX(hash) {
|
||||
var item = this.map[hash];
|
||||
|
||||
if (!item) {
|
||||
bcoin.debug('estimatefee: Mempool tx %s not found.', hash);
|
||||
bcoin.debug(
|
||||
'estimatefee: Mempool tx %s not found.',
|
||||
utils.revHex(hash));
|
||||
return;
|
||||
}
|
||||
|
||||
@ -406,7 +408,7 @@ PolicyEstimator.prototype.processTX = function processTX(entry, current) {
|
||||
var fee, rate, priority;
|
||||
|
||||
if (this.map[hash]) {
|
||||
bcoin.debug('estimatefee: Mempool tx %s already tracked.', hash);
|
||||
bcoin.debug('estimatefee: Mempool tx %s already tracked.', entry.tx.rhash);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -426,7 +428,7 @@ PolicyEstimator.prototype.processTX = function processTX(entry, current) {
|
||||
rate = entry.getRate();
|
||||
priority = entry.getPriority(height);
|
||||
|
||||
bcoin.debug('estimatefee: Processing mempool tx %s.', hash);
|
||||
bcoin.debug('estimatefee: Processing mempool tx %s.', entry.tx.rhash);
|
||||
|
||||
if (fee === 0 || this.isPriPoint(rate, priority)) {
|
||||
this.map[hash] = {
|
||||
@ -440,7 +442,7 @@ PolicyEstimator.prototype.processTX = function processTX(entry, current) {
|
||||
};
|
||||
bcoin.debug('estimatefee: Rate: %d.', this.estimateFee());
|
||||
} else {
|
||||
bcoin.debug('estimatefee: Not adding tx %s.', hash);
|
||||
bcoin.debug('estimatefee: Not adding tx %s.', entry.tx.rhash);
|
||||
}
|
||||
|
||||
};
|
||||
@ -462,7 +464,7 @@ PolicyEstimator.prototype.processBlockTX = function processBlockTX(height, entry
|
||||
if (blocks <= 0) {
|
||||
bcoin.debug(
|
||||
'estimatefee: Block tx %s had negative blocks to confirm (%d, %d).',
|
||||
entry.tx.hash('hex'),
|
||||
entry.tx.rhash,
|
||||
height,
|
||||
entry.height);
|
||||
return;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user