From e945e6b6008b6734988bd2594e2ce965e334a590 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 18:45:12 -0600 Subject: [PATCH] RX5 --- Uber-Lyra/blockchainManager.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Uber-Lyra/blockchainManager.js b/Uber-Lyra/blockchainManager.js index 1e44317..65f02a2 100644 --- a/Uber-Lyra/blockchainManager.js +++ b/Uber-Lyra/blockchainManager.js @@ -109,7 +109,8 @@ class BlockchainManager { cannonBalls.push(this.invokeTransactions(peer, chaincodeName, chaincodeName, 'transferFunds', args, username, orgName)); } start = now(); - return Promise.all(cannonBalls); + return Promise.resolve([]) + .then(all => cannonBalls[0].then(Array.prototype.concat.bind(all))) }) .then(() => { end = now(); @@ -233,7 +234,8 @@ class BlockchainManager { } //Launch the accounts start = now(); - return Promise.all(all_promise) + return Promise.resolve([]) + .then(all => all_promise[0].then(Array.prototype.concat.bind(all))) .then(() => { end = now(); this.profilingTime(start, end, amount, 'acc');