Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERC20 caliper benchmark get stuck in loop #269

Open
victoryeo opened this issue Jul 31, 2024 · 6 comments
Open

ERC20 caliper benchmark get stuck in loop #269

victoryeo opened this issue Jul 31, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@victoryeo
Copy link
Contributor

victoryeo commented Jul 31, 2024

ERC20 caliper benchmark get stuck in loop

2024.07.31-09:15:49.562 info [caliper] [default-observer] [50 txns with Round 0 Transaction Info] - Submitted: 50 Succ: 0 Fail:0 Unfinished:50
(the same message keep repeating.....)

@victoryeo
Copy link
Contributor Author

victoryeo commented Jul 31, 2024

If i Ctrl-C and run the test again, it shows:
2024.07.31-10:40:45.851 error [caliper] [ethereum-connector] Failed tx on ERC20; calling method: transfer; nonce: 0x64
2024.07.31-10:40:45.851 error [caliper] [ethereum-connector] Error: Returned error: Known transaction

@victoryeo
Copy link
Contributor Author

victoryeo commented Aug 1, 2024

The besu node is started with this private key: 0xa67bee5d6fb43acd42e307eb67547ab5006ad2fbb9567829e9b4b2ef3580acea
If change the private key, the caliper benchmark test won't work and test get stuck with the below:
info [caliper] [default-observer] [50 txns with Round 0 Transaction Info] - Submitted: 50 Succ: 0 Fail:0 Unfinished:50

@davidkel
Copy link
Contributor

davidkel commented Aug 2, 2024

Running the following against a clean clone of caliper-benchmarks

        npm install --only=prod @hyperledger/[email protected]
        npx caliper bind --caliper-bind-sut besu:latest
        npx caliper --version
        npx caliper launch manager \
        --caliper-benchconfig benchmarks/scenario/ERC-20/config.yaml \
        --caliper-networkconfig networks/besu/1node-clique/erc20networkconfig.json \
        --caliper-workspace .
        npx caliper launch manager \
        --caliper-benchconfig benchmarks/scenario/ERC-721/config.yaml \
        --caliper-networkconfig networks/besu/1node-clique/erc721networkconfig.json \
        --caliper-workspace .
        npx caliper launch manager --caliper-benchconfig benchmarks/scenario/simple/config.yaml --caliper-networkconfig networks/besu/1node-clique/networkconfig.json --caliper-workspace .

All of these work for me. Can you describe what you did differently to this ?

@victoryeo
Copy link
Contributor Author

victoryeo commented Aug 6, 2024

Sure,
i run a besu node from command line (the genesis.json and keys/key are from networks/besu/1node-clique/data and keys):

./bin/besu --data-path=./tmpDir --genesis-file=./genesis.json --node-private-key-file=./keys/key --revert-reason-enabled --rpc-ws-enabled=true --rpc-ws-host=0.0.0.0 --host-allowlist=*  --rpc-ws-apis=ADMIN,ETH,MINER,WEB3,NET,PRIV,EEA --graphql-http-enabled --discovery-enabled=false --min-gas-price=0

and empty the command section in json file

        "blockchain": "ethereum",
        "command" : {}
    },

the benchmark test would work

@victoryeo
Copy link
Contributor Author

but once i modify keys/key to other private key. the benchmark test would fail.

@davidkel
Copy link
Contributor

davidkel commented Aug 13, 2024

@victoryeo ok, so unfortunately I have no knowledge of ethereum or besu so not much more I can do. Maybe @aklenik can help here

@davidkel davidkel added the bug Something isn't working label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants