Skip to content

Commit

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

0 comments on commit e945e6b

Please sign in to comment.