hyperledger / caliper

A blockchain benchmark framework to measure performance of multiple blockchain solutions https://wiki.hyperledger.org/display/caliper
https://hyperledger.github.io/caliper/
Apache License 2.0
650 stars 403 forks source link

About whether it is possible to specify an account for testing in Caliper for fisco-bcos #1496

Closed roc0723 closed 4 months ago

roc0723 commented 1 year ago

this is my fisco-bcos.json { "caliper": { "blockchain": "fisco-bcos" }, "fisco-bcos": { "config": { "privateKey": "902df8337bdaecd05377ec646e54305d82d691fc61c14552955737aefab3da42", "account": "0x82a25c9a26cda8600820309dd90b425946a0003b" }, "network": { "nodes": [ { "ip": "127.0.0.1", "rpcPort": "8545", "channelPort": "20200" }, { "ip": "127.0.0.1", "rpcPort": "8546", "channelPort": "20201" }, { "ip": "127.0.0.1", "rpcPort": "8547", "channelPort": "20202" }, { "ip": "127.0.0.1", "rpcPort": "8548", "channelPort": "20203" } ],

I want to repeat a certain API test using this account, but when I was debugging, I found out that it always ends up having a random user send the transaction. When I debugged this method and checked the hexadecimal private key passed in, it was correct. I thought this was the final step to generate the signature, and then send the transaction based on the signature. However, after sending the transaction and checking the block, all users appeared to be random.

`/**

` in /node_modules/\@hyperledger/caliper-fisco-bcos/lib/web3lib/web3sync.js

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

davidkel commented 4 months ago

Closing as fisco-bcos is unsupported. Available as is only now.