Skip to content

Commit 01cef6f

Browse files
author
Alex Melville
committed
remove additional 0.01 change value when requesting unspents for use in txn creation
Summary: The platform already adds on 0.01 when requesting unspents, so this 0.01 is redundant Reviewers: ben, mark Reviewed By: mark Subscribers: ben Differential Revision: https://phabricator.bitgo.com/D6194
1 parent 080c727 commit 01cef6f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bitgo",
3-
"version": "3.5.2",
3+
"version": "3.6.0",
44
"description": "BitGo Javascript SDK",
55
"main": "./src/index.js",
66
"keywords": [

src/transactionBuilder.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,9 @@ exports.createTransaction = function(params) {
263263
return;
264264
}
265265

266-
// Get enough unspents for the requested amount, plus a little more in case we need to pay an increased fee
266+
// Get enough unspents for the requested amount
267267
var options = {
268-
target: totalAmount + 0.01e8, // fee @ 0.0001/kb for a 100kb tx
268+
target: totalAmount,
269269
minSize: params.minUnspentSize || 0,
270270
instant: params.instant, // insist on instant unspents only
271271
targetWalletUnspents: params.targetWalletUnspents

0 commit comments

Comments
 (0)