Describe the bug
Run the etherum example at Master branch
To Reproduce
Steps to reproduce the behavior:
- ./scripts/sample/start_testnet.sh
- ./diablo primary -c scripts/sample/workloads/sample_contract_store.yaml -cc scripts/sample/blockchain-configs/ganache-using-keyfile.yaml -a "0.0.0.0:8323" --level DEBUG
- ./diablo secondary -m ":8323" -c scripts/sample/workloads/sample_contract_store.yaml -cc scripts/sample/blockchain-configs/ganache-using-keyfile.yaml --level DEBUG --timeout 2
Expected behavior
Run succssfully.
Screenshots
Primary:
2022-09-19T15:02:05.395+0800 INFO Secondary 1 / 1 connected {"Addr:": "127.0.0.1:37920"}
2022-09-19T15:02:05.395+0800 DEBUG SendSync {"len": 9}
2022-09-19T15:02:05.398+0800 DEBUG GOT REPLY FROM 127.0.0.1:37920
2022-09-19T15:02:05.398+0800 INFO Benchmark secondaries all connected. {"secondaries": 1}
2022-09-19T15:02:05.399+0800 DEBUG tps interval {"total": 5, "thread": 5}
2022-09-19T15:02:05.399+0800 DEBUG tps interval {"total": 5, "thread": 5}
2022-09-19T15:02:05.399+0800 DEBUG tps interval {"total": 5, "thread": 5}
2022-09-19T15:02:05.399+0800 DEBUG tps interval {"total": 5, "thread": 5}
2022-09-19T15:02:05.399+0800 DEBUG tps interval {"total": 5, "thread": 5}
2022-09-19T15:02:05.399+0800 DEBUG tps interval {"total": 5, "thread": 5}
2022-09-19T15:02:05.399+0800 INFO Generating workload {"workloadType": "contract", "threadsTotal": 1, "totalTransactions per worker": 25}
2022-09-19T15:02:05.422+0800 ERROR failed to generate workload {"error": "json: cannot unmarshal array into Go struct field .Contracts.Abi of type string"}
2022-09-19T15:02:05.422+0800 DEBUG Closing Secondary 0 @ 127.0.0.1:37920
Secondary
2022-09-19T15:02:05.394+0800 DEBUG Loaded accounts {"accounts": 2000}
2022-09-19T15:02:05.395+0800 WARN Overwriting config timeout (0) with flag 2
2022-09-19T15:02:05.395+0800 DEBUG Connection OK {"ADDR": ":8323"}
2022-09-19T15:02:05.395+0800 INFO Secondary init
2022-09-19T15:02:05.395+0800 DEBUG Performing Initial Read
2022-09-19T15:02:05.395+0800 DEBUG Received Command Message {"CMD": "AQAAAAAAAAAB"}
2022-09-19T15:02:05.395+0800 INFO Got command from primary {"CMD": "PREPARE"}
2022-09-19T15:02:05.398+0800 DEBUG Connect and Init of workload handler and client interface OK {"ID": 0}
2022-09-19T15:02:05.398+0800 DEBUG OK sent to master
2022-09-19T15:02:05.398+0800 DEBUG Performing Initial Read
2022-09-19T15:02:05.422+0800 WARN failed to read {"err": "EOF"}
2022-09-19T15:02:05.422+0800 DEBUG Closing Connection to primary
Desktop (please complete the following information):
- OS:Ubuntu 21
-
- go version: go1.17 linux/amd64
-- npm: npm: '8.5.5',
node: '17.9.0',
-- Ganache CLI v6.12.2 (ganache-core: 2.13.2)
Additional context
Add any other context about the problem here.