From 53b8f966e768e9ee69337412d23ba9d5f038bd2b Mon Sep 17 00:00:00 2001 From: "Sam (Sangho Kim)" Date: Mon, 31 Dec 2018 12:24:27 +0900 Subject: [PATCH] Update transactions.js I think this is typo. --- test/integration/transactions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/transactions.js b/test/integration/transactions.js index 0d88d78..f725241 100644 --- a/test/integration/transactions.js +++ b/test/integration/transactions.js @@ -64,7 +64,7 @@ describe('bitcoinjs-lib (transactions)', function () { txb.addInput(unspent1.txId, unspent1.vout) // alice2 unspent txb.addOutput('mwCwTceJvYV27KXBc3NJZys6CjsgsoeHmf', 8e4) // the actual "spend" txb.addOutput(aliceCpkh.address, 1e4) // Alice's change - // (in)(4e4 + 2e4) - (out)(1e4 + 3e4) = (fee)2e4 = 20000, this is the miner fee + // (in)(5e4 + 7e4) - (out)(8e4 + 1e4) = (fee)3e4 = 30000, this is the miner fee // Alice signs each input with the respective private keys txb.sign(0, alice1)