10
10
Web3ModuleTest ,
11
11
)
12
12
13
- GETH_VERSIONS_WITHOUT_MINING_CONTROL = ['v1.7.2' , 'v1.8.22' ]
14
- GETH_VERSIONS_WITHOUT_ETH_SUBMITHASH = ['v1.8.22' , 'v1.9.7' ]
13
+ VERSIONS_WITHOUT_MINING_CONTROL = ['v1.7.2' , 'v1.8.22' ]
14
+ VERSIONS_WITHOUT_ETH_SUBMITHASH = ['v1.8.22' , 'v1.9.7' ]
15
15
16
16
17
17
class GoEthereumTest (Web3ModuleTest ):
@@ -21,7 +21,7 @@ def _check_web3_clientVersion(self, client_version):
21
21
22
22
class GoEthereumEthModuleTest (EthModuleTest ):
23
23
def test_eth_replaceTransaction (self , web3 , unlocked_account ):
24
- if any ([v in web3 .clientVersion for v in GETH_VERSIONS_WITHOUT_MINING_CONTROL ]):
24
+ if any ([v in web3 .clientVersion for v in VERSIONS_WITHOUT_MINING_CONTROL ]):
25
25
pytest .xfail (reason = 'Needs ability to efficiently control mining' )
26
26
super ().test_eth_replaceTransaction (web3 , unlocked_account )
27
27
@@ -31,14 +31,14 @@ def test_eth_replaceTransaction_already_mined(self, web3, unlocked_account_dual_
31
31
web3 .geth .miner .stop ()
32
32
33
33
def test_eth_replaceTransaction_gas_price_defaulting_minimum (self , web3 , unlocked_account ):
34
- if any ([v in web3 .clientVersion for v in GETH_VERSIONS_WITHOUT_MINING_CONTROL ]):
34
+ if any ([v in web3 .clientVersion for v in VERSIONS_WITHOUT_MINING_CONTROL ]):
35
35
pytest .xfail (reason = 'Needs ability to efficiently control mining' )
36
36
super ().test_eth_replaceTransaction_gas_price_defaulting_minimum (web3 , unlocked_account )
37
37
38
38
def test_eth_replaceTransaction_gas_price_defaulting_strategy_higher (self ,
39
39
web3 ,
40
40
unlocked_account ):
41
- if any ([v in web3 .clientVersion for v in GETH_VERSIONS_WITHOUT_MINING_CONTROL ]):
41
+ if any ([v in web3 .clientVersion for v in VERSIONS_WITHOUT_MINING_CONTROL ]):
42
42
pytest .xfail (reason = 'Needs ability to efficiently control mining' )
43
43
super ().test_eth_replaceTransaction_gas_price_defaulting_strategy_higher (
44
44
web3 , unlocked_account
@@ -47,14 +47,14 @@ def test_eth_replaceTransaction_gas_price_defaulting_strategy_higher(self,
47
47
def test_eth_replaceTransaction_gas_price_defaulting_strategy_lower (self ,
48
48
web3 ,
49
49
unlocked_account ):
50
- if any ([v in web3 .clientVersion for v in GETH_VERSIONS_WITHOUT_MINING_CONTROL ]):
50
+ if any ([v in web3 .clientVersion for v in VERSIONS_WITHOUT_MINING_CONTROL ]):
51
51
pytest .xfail (reason = 'Needs ability to efficiently control mining' )
52
52
super ().test_eth_replaceTransaction_gas_price_defaulting_strategy_lower (
53
53
web3 , unlocked_account
54
54
)
55
55
56
56
def test_eth_modifyTransaction (self , web3 , unlocked_account ):
57
- if any ([v in web3 .clientVersion for v in GETH_VERSIONS_WITHOUT_MINING_CONTROL ]):
57
+ if any ([v in web3 .clientVersion for v in VERSIONS_WITHOUT_MINING_CONTROL ]):
58
58
pytest .xfail (reason = 'Needs ability to efficiently control mining' )
59
59
super ().test_eth_modifyTransaction (web3 , unlocked_account )
60
60
@@ -67,7 +67,7 @@ def test_eth_estimateGas_with_block(self,
67
67
)
68
68
69
69
def test_eth_submitHashrate (self , web3 ):
70
- if any ([v in web3 .clientVersion for v in GETH_VERSIONS_WITHOUT_ETH_SUBMITHASH ]):
70
+ if any ([v in web3 .clientVersion for v in VERSIONS_WITHOUT_ETH_SUBMITHASH ]):
71
71
# https://github.com/ethereum/go-ethereum/commit/51db5975cc5fb88db6a0dba1826b534fd4df29d7
72
72
pytest .xfail ('eth_submitHashrate deprecated in 1.8.22 for ethash_submitHashRate' )
73
73
super ().test_eth_submitHashrate (web3 )
0 commit comments