TransactionBuilder: add fee safety

This commit is contained in:
Daniel Cousens 2016-11-09 13:01:29 +11:00 committed by Thomas Kerin
parent 11079bfafb
commit e835f1fe95
4 changed files with 67 additions and 22 deletions

View file

@ -37,6 +37,7 @@ function construct (f, sign) {
if (sign === false) return txb
f.inputs.forEach(function (input, index) {
if (!input.signs) return
input.signs.forEach(function (sign) {
var keyPair = ECPair.fromWIF(sign.keyPair, network)
var redeemScript