Open steventranjs opened 4 years ago
+1
+1
@nklincoln thanks for approve my proposal as an enhancement. May I know when can I have permission to make Pull Request on this? Thanks
+1
@steventranjs I'm so sorry for only just noticing your message - we are always willing to accept PRs.
Please feel free to contact us directly in rocket chat on the following channel: https://chat.hyperledger.org/channel/caliper-contributors
Does this work? May I apply your proposal as I am using caliper 0.4.2?
I have already applied the idea with an easy way. All you need is to edit the network configuration file by setting fromAddress key with a table of addresses. Then, in EthereumConnector, in getContext() method, access to address using "this.ethereumConfig.fromAddress[this.workerIndex]" instead of "this.ethereumConfig.fromAddress;"
Context
Currently, the Ethereum benchmark configuration only allow to send transactions from 1 single address (
fromAddress
) and all workers using this same address to send transactionsProposed Enhancement
Allow to add multiple addreses for Ethereum benchmark that run in multiple workers. A sample configuration is as below
fromAddress
is allowed to have comma separator beside single address string formatfromAddressPrivateKey
andfromAddressPassword
also changed accordingly, validation will ensure numbers of addressed and its private keys / passwords are sameHow To Assign Parallel Addresses To Workers
If numbers of workers LESS than the number of addresses
If numbers of workers MORE than the number of addresses
P/S: If this proposal is accepted, I would like to send a pull request as I alrd prepared code changes from my side