Adds example. Refactory

This commit is contained in:
Gustavo Maximiliano Cortez 2015-12-16 16:22:40 -03:00
commit 804c37bffa
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
2 changed files with 21 additions and 3 deletions

View file

@ -495,6 +495,25 @@ angular.module('copayApp.controllers').controller('indexController', function($r
self.pendingTxProposalsCountForUs = 0;
var now = Math.floor(Date.now() / 1000);
/* Uncomment to test multiple outputs */
/*
var txp = {
message: 'test multi-output',
fee: 1000,
createdOn: new Date() / 1000,
outputs: []
};
function addOutput(n) {
txp.outputs.push({
amount: 600,
toAddress: '2N8bhEwbKtMvR2jqMRcTCQqzHP6zXGToXcK',
message: 'output #' + (Number(n) + 1)
});
};
lodash.times(150, addOutput);
txps.push(txp);
*/
lodash.each(txps, function(tx) {
tx = txFormatService.processTx(tx);