From afc9f0ad2504626f6fcb41a46cee5731072d4a12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Mart=C3=ADn=20Garc=C3=ADa=20Del=20Angel?= Date: Tue, 21 Nov 2017 23:56:05 -0600 Subject: [PATCH] rcx6 --- Uber-Lyra/blockchainManager.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Uber-Lyra/blockchainManager.js b/Uber-Lyra/blockchainManager.js index 65f02a2..789282b 100644 --- a/Uber-Lyra/blockchainManager.js +++ b/Uber-Lyra/blockchainManager.js @@ -109,8 +109,9 @@ class BlockchainManager { cannonBalls.push(this.invokeTransactions(peer, chaincodeName, chaincodeName, 'transferFunds', args, username, orgName)); } start = now(); - return Promise.resolve([]) - .then(all => cannonBalls[0].then(Array.prototype.concat.bind(all))) + // Promise.resolve([]) + // .then(all => cannonBalls[0].then(Array.prototype.concat.bind(all))) + return Promise.all(cannonBalls) }) .then(() => { end = now(); @@ -234,8 +235,9 @@ class BlockchainManager { } //Launch the accounts start = now(); - return Promise.resolve([]) - .then(all => all_promise[0].then(Array.prototype.concat.bind(all))) + Promise.resolve([]) + // .then(all => all_promise[0].then(Array.prototype.concat.bind(all))) + return Promise.all(all_promise) .then(() => { end = now(); this.profilingTime(start, end, amount, 'acc');