From 3bfdacafa239121e8d8219491e9aa53098d1f83d Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Sat, 14 Apr 2018 01:18:31 +1000 Subject: [PATCH] change TransactionBuilder to default to version 2 --- src/transaction_builder.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/transaction_builder.js b/src/transaction_builder.js index d1e8587..ca59d88 100644 --- a/src/transaction_builder.js +++ b/src/transaction_builder.js @@ -476,6 +476,7 @@ function TransactionBuilder (network, maximumFeeRate) { this.inputs = [] this.tx = new Transaction() + this.tx.version = 2 } TransactionBuilder.prototype.setLockTime = function (locktime) {