diff --git a/src/transaction_builder.js b/src/transaction_builder.js index 8fc6cf8..755ad5f 100644 --- a/src/transaction_builder.js +++ b/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