Skip to content

Commit

Permalink
rcx6
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-headspace committed Nov 22, 2017
1 parent 8acf1a3 commit afc9f0a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Uber-Lyra/blockchainManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit afc9f0a

Please sign in to comment.