Compare commits

..

2 Commits

Author SHA1 Message Date
peilun-conflux
6154fff602
Merge 3957f8b28d into 1d48cb1ea7 2024-09-11 10:14:04 +08:00
Bo QIU
1d48cb1ea7
Use 0gchain to test mine tests (#191)
Some checks are pending
abi-consistent-check / build-and-compare (push) Waiting to run
code-coverage / unittest-cov (push) Waiting to run
rust / check (push) Waiting to run
rust / test (push) Waiting to run
rust / lints (push) Waiting to run
functional-test / test (push) Waiting to run
* Use 0gchain to test mine tests

* adjust zg block time
2024-09-11 10:13:31 +08:00
3 changed files with 5 additions and 3 deletions

View File

@ -80,4 +80,4 @@ class MineTest(TestFramework):
if __name__ == "__main__":
MineTest(blockchain_node_type=BlockChainNodeType.BSC).main()
MineTest().main()

View File

@ -106,4 +106,4 @@ class MineTest(TestFramework):
if __name__ == "__main__":
MineTest(blockchain_node_type=BlockChainNodeType.BSC).main()
MineTest().main()

View File

@ -31,8 +31,10 @@ class BlockChainNodeType(Enum):
return 0.5
elif self == BlockChainNodeType.BSC:
return 32 / estimate_st_performance()
elif self == BlockChainNodeType.ZG:
return 0.5
else:
return 5.0
raise AssertionError("Unsupported blockchain type")
@unique
class NodeType(Enum):