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];
|
var item = this.map[hash];
|
||||||
|
|
||||||
if (!item) {
|
if (!item) {
|
||||||
bcoin.debug('estimatefee: Mempool tx %s not found.', hash);
|
bcoin.debug(
|
||||||
|
'estimatefee: Mempool tx %s not found.',
|
||||||
|
utils.revHex(hash));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -406,7 +408,7 @@ PolicyEstimator.prototype.processTX = function processTX(entry, current) {
|
|||||||
var fee, rate, priority;
|
var fee, rate, priority;
|
||||||
|
|
||||||
if (this.map[hash]) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -426,7 +428,7 @@ PolicyEstimator.prototype.processTX = function processTX(entry, current) {
|
|||||||
rate = entry.getRate();
|
rate = entry.getRate();
|
||||||
priority = entry.getPriority(height);
|
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)) {
|
if (fee === 0 || this.isPriPoint(rate, priority)) {
|
||||||
this.map[hash] = {
|
this.map[hash] = {
|
||||||
@ -440,7 +442,7 @@ PolicyEstimator.prototype.processTX = function processTX(entry, current) {
|
|||||||
};
|
};
|
||||||
bcoin.debug('estimatefee: Rate: %d.', this.estimateFee());
|
bcoin.debug('estimatefee: Rate: %d.', this.estimateFee());
|
||||||
} else {
|
} 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) {
|
if (blocks <= 0) {
|
||||||
bcoin.debug(
|
bcoin.debug(
|
||||||
'estimatefee: Block tx %s had negative blocks to confirm (%d, %d).',
|
'estimatefee: Block tx %s had negative blocks to confirm (%d, %d).',
|
||||||
entry.tx.hash('hex'),
|
entry.tx.rhash,
|
||||||
height,
|
height,
|
||||||
entry.height);
|
entry.height);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user