mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2024-11-20 15:05:19 +00:00
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
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
This commit is contained in:
parent
702680f3a4
commit
1d48cb1ea7
@ -80,4 +80,4 @@ class MineTest(TestFramework):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
MineTest(blockchain_node_type=BlockChainNodeType.BSC).main()
|
MineTest().main()
|
||||||
|
@ -106,4 +106,4 @@ class MineTest(TestFramework):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
MineTest(blockchain_node_type=BlockChainNodeType.BSC).main()
|
MineTest().main()
|
||||||
|
@ -31,8 +31,10 @@ class BlockChainNodeType(Enum):
|
|||||||
return 0.5
|
return 0.5
|
||||||
elif self == BlockChainNodeType.BSC:
|
elif self == BlockChainNodeType.BSC:
|
||||||
return 32 / estimate_st_performance()
|
return 32 / estimate_st_performance()
|
||||||
|
elif self == BlockChainNodeType.ZG:
|
||||||
|
return 0.5
|
||||||
else:
|
else:
|
||||||
return 5.0
|
raise AssertionError("Unsupported blockchain type")
|
||||||
|
|
||||||
@unique
|
@unique
|
||||||
class NodeType(Enum):
|
class NodeType(Enum):
|
||||||
|
Loading…
Reference in New Issue
Block a user