Skip to content

Commit 7d576ef

Browse files
committed
removing unused code
1 parent a092e1a commit 7d576ef

File tree

10 files changed

+56
-802
lines changed

10 files changed

+56
-802
lines changed

tests/cache_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python3
22

33
from test_framework.test_framework import TestFramework
4-
from utility.submission import create_submission, submit_data, data_to_segments
4+
from utility.submission import create_submission, data_to_segments
55
from utility.utils import wait_until
66

77

tests/config/bsc.toml

Lines changed: 0 additions & 101 deletions
This file was deleted.

tests/config/node_config.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -27,30 +27,6 @@
2727
ZGS_KEY_FILE = os.path.join(CONFIG_DIR, "zgs", "network", "key")
2828
ZGS_NODEID = "16Uiu2HAmLkGFUbNFYdhuSbTQ5hmnPjFXx2zUDtwQ2uihHpN9YNNe"
2929

30-
BSC_CONFIG = dict(
31-
NetworkId=1000,
32-
HTTPPort=8545,
33-
HTTPHost="127.0.0.1",
34-
Etherbase="0x7df9a875a174b3bc565e6424a0050ebc1b2d1d82",
35-
DataDir="test/local_ethereum_blockchain/node1",
36-
Port=30303,
37-
Verbosity=5,
38-
)
39-
40-
CONFLUX_CONFIG = dict(
41-
mode="dev",
42-
chain_id=10,
43-
jsonrpc_http_eth_port=8545,
44-
tcp_port=32323,
45-
log_level="debug",
46-
log_file="./conflux.log",
47-
public_address="127.0.0.1",
48-
poll_lifetime_in_seconds=60,
49-
dev_allow_phase_change_without_peer="true",
50-
dev_block_interval_ms=200,
51-
)
52-
53-
BLOCK_SIZE_LIMIT = 200 * 1024
5430
# 0xfbe45681Ac6C53D5a40475F7526baC1FE7590fb8
5531
GENESIS_PRIV_KEY = "46b9e861b63d3509c88b7817275a30d22d62c8cd8fa6486ddee35ef0d8e0495f"
5632
MINER_ID = "308a6e102a5829ba35e4ba1da0473c3e8bd45f5d3ffb91e31adb43f25463dddb"

tests/revert_test.py

Lines changed: 0 additions & 78 deletions
This file was deleted.

tests/test_framework/blockchain_node.py

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,16 @@
1212
TX_PARAMS,
1313
)
1414
from utility.simple_rpc_proxy import SimpleRpcProxy
15-
from utility.utils import initialize_config, wait_until, estimate_st_performance
15+
from utility.utils import initialize_config, wait_until
1616
from test_framework.contracts import load_contract_metadata
1717

1818

1919
@unique
2020
class BlockChainNodeType(Enum):
21-
Conflux = 0
22-
BSC = 1
23-
ZG = 2
21+
ZG = 0
2422

2523
def block_time(self):
26-
if self == BlockChainNodeType.Conflux:
27-
return 0.5
28-
elif self == BlockChainNodeType.BSC:
29-
return 32 / estimate_st_performance()
30-
elif self == BlockChainNodeType.ZG:
24+
if self == BlockChainNodeType.ZG:
3125
return 0.5
3226
else:
3327
raise AssertionError("Unsupported blockchain type")
@@ -394,7 +388,4 @@ def wait_for_transaction(self, tx_hash):
394388
w3.eth.wait_for_transaction_receipt(tx_hash)
395389

396390
def start(self):
397-
super().start(
398-
self.blockchain_node_type == BlockChainNodeType.BSC
399-
or self.blockchain_node_type == BlockChainNodeType.ZG
400-
)
391+
super().start(self.blockchain_node_type == BlockChainNodeType.ZG)

tests/test_framework/bsc_node.py

Lines changed: 0 additions & 110 deletions
This file was deleted.

0 commit comments

Comments
 (0)