Skip to content
This repository was archived by the owner on Apr 3, 2019. It is now read-only.
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/transaction/transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ Transaction.prototype._clearSignatures = function() {
};

Transaction._estimateFeePerKb = function(size, amountAvailable, feePerKb) {
var fee = Math.ceil(size / 1000) * (feePerKb || Transaction.FEE_PER_KB);
var fee = Math.ceil(size / 1000 * (feePerKb || Transaction.FEE_PER_KB));
if (amountAvailable > fee) {
size += Transaction.CHANGE_OUTPUT_MAX_SIZE;
}
Expand Down