floor rates and priority.

This commit is contained in:
Christopher Jeffrey 2016-06-15 18:03:42 -07:00
parent aba92e4a7f
commit 6a4fce383e
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -572,7 +572,7 @@ PolicyEstimator.prototype.estimateFee = function estimateFee(target, smart) {
if (rate < 0)
return 0;
return rate;
return Math.floor(rate);
}
rate = -1;
@ -591,7 +591,7 @@ PolicyEstimator.prototype.estimateFee = function estimateFee(target, smart) {
if (rate < 0)
return 0;
return rate;
return Math.floor(rate);
};
/**
@ -617,7 +617,7 @@ PolicyEstimator.prototype.estimatePriority = function estimatePriority(target, s
priority = this.priStats.estimateMedian(
target, SUFFICIENT_PRITXS, MIN_SUCCESS_PCT,
true, this.bestHeight);
return priority;
return Math.floor(priority);
}
minPoolFee = this.network.minRelay;
@ -636,7 +636,7 @@ PolicyEstimator.prototype.estimatePriority = function estimatePriority(target, s
if (priority < 0)
return 0;
return priority;
return Math.floor(priority);
};
/**