TransactionBuilder: move ABSURD_FEERATE to static constant

This commit is contained in:
Daniel Cousens 2016-11-12 13:10:17 +11:00 committed by Thomas Kerin
parent f0db59fa8e
commit 61be897429

View file

@ -236,6 +236,8 @@ function TransactionBuilder (network) {
this.tx = new Transaction()
}
TransactionBuilder.ABSURD_FEERATE = 1000
TransactionBuilder.prototype.setLockTime = function (locktime) {
typeforce(types.UInt32, locktime)
@ -513,7 +515,7 @@ TransactionBuilder.prototype.__hasAbsurdFeeRate = function (bytes) {
var fee = incoming - outgoing
var feeRate = fee / bytes
return feeRate > 1000
return feeRate > TransactionBuilder.ABSURD_FEERATE
}
module.exports = TransactionBuilder