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');