From 9f881087a26ec39342e783ae204fc7fb2193cdd3 Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Thu, 30 Oct 2014 16:45:44 -0300 Subject: [PATCH] support for wallets 1-1 --- util/swipeWallet.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/util/swipeWallet.js b/util/swipeWallet.js index 737491ecf..388637c74 100755 --- a/util/swipeWallet.js +++ b/util/swipeWallet.js @@ -127,6 +127,13 @@ firstWallet.updateIndexes(function() { firstWallet.createTx(destAddr, amount, '', {}, function(err, ntxid) { console.log('\n\t### Tx Proposal Created... With copayer 0 signature.'); + if (requiredCopayers ===1) { + firstWallet.sendTx(ntxid, function(txid) { + console.log('\t ####### SENT TXID:', txid); + process.exit(1); + }); + } + var l = w.length; _.each(w, function(dummy, i) { console.log('\t Signing with copayer', i + 1);