Hi all,
I created a custom connector to benchmark the Cosmos blockchain.
The connector works but the preparation phase is currently slow due to the fact that the creation of identities for testing is done in the getContext function and therefore is performed by every worker.
By inserting this process into other functions, digital identities are not found by workers.
My intention is to effect the creation of the accounts in the init function by the process manager and then distribute it to the workers with the prepareWorkerArguments function, as suggested among other things by the documentation on the writing-connectors page: https://hyperledger.github.io/caliper/v0.5.0/writing-connectors/
However, I did not understand how these objects returned by the prepareWorkerArguments function can be used by workers, I also checked the code of the connectors already implemented but I could not find concrete examples.
For example, given the result object returned by the prepareWorkerArguments function, how can I use it in the _sendSingleRequest function?
andZka