From 919b7cec6076f81274dc934b6cd85855c7b4dc4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?BRAMILLE=20S=C3=A9bastien?= Date: Mon, 22 Jan 2018 11:20:41 +0000 Subject: [PATCH] Update transactions.js --- 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 cadbc09..609f4b8 100644 --- a/test/integration/transactions.js +++ b/test/integration/transactions.js @@ -34,7 +34,7 @@ describe('bitcoinjs-lib (transactions)', function () { txb.addInput('7d865e959b2466918c9863afca942d0fb89d7c9ac0c99bafc3749504ded97730', 0) // Bob's previous transaction output, has 300000 satoshis txb.addOutput('1CUNEBjYrCn2y1SdiUMohaKUi4wpP326Lb', 180000) txb.addOutput('1JtK9CQw1syfWj1WtFMWomrYdV3W2tWBF9', 170000) - // (in)(200000 + 300000) - (out)(180000 + 150000) = (fee)170000, this is the miner fee + // (in)(200000 + 300000) - (out)(180000 + 170000) = (fee)150000, this is the miner fee txb.sign(1, bob) // Bob signs his input, which was the second input (1th) txb.sign(0, alice) // Alice signs her input, which was the first input (0th)