Browse Source

TransactionBuilder: move ABSURD_FEERATE to static constant

hk-custom-address
Daniel Cousens 8 years ago
committed by Thomas Kerin
parent
commit
61be897429
  1. 4
      src/transaction_builder.js

4
src/transaction_builder.js

@ -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

Loading…
Cancel
Save