upgrade to ethermint v0.21.0 #99
@ -6,7 +6,7 @@
|
||||
config: {
|
||||
consensus: {
|
||||
// larger timeout for more stable mempool tests
|
||||
timeout_commit: '10s',
|
||||
timeout_commit: '2s',
|
||||
},
|
||||
mempool: {
|
||||
// use v1 mempool to enable tx prioritization
|
||||
|
@ -45,7 +45,7 @@ def test_pruned_node(pruned):
|
||||
signed = sign_transaction(w3, tx, KEYS["validator"])
|
||||
txhash = w3.eth.send_raw_transaction(signed.rawTransaction)
|
||||
print("wait for prunning happens")
|
||||
w3_wait_for_new_blocks(w3, 10)
|
||||
w3_wait_for_new_blocks(w3, 15)
|
||||
|
||||
tx_receipt = w3.eth.get_transaction_receipt(txhash.hex())
|
||||
assert len(tx_receipt.logs) == 1
|
||||
|
@ -93,7 +93,7 @@ def test_cosmovisor_upgrade(custom_ethermint: Ethermint):
|
||||
"""
|
||||
cli = custom_ethermint.cosmos_cli()
|
||||
height = cli.block_height()
|
||||
target_height = height + 5
|
||||
target_height = height + 10
|
||||
print("upgrade height", target_height)
|
||||
|
||||
w3 = custom_ethermint.w3
|
||||
|
@ -80,7 +80,7 @@ def wait_for_new_blocks(cli, n):
|
||||
|
||||
|
||||
def wait_for_block(cli, height, timeout=240):
|
||||
for i in range(timeout * 2):
|
||||
for _ in range(timeout * 2):
|
||||
try:
|
||||
status = cli.status()
|
||||
except AssertionError as e:
|
||||
@ -96,7 +96,7 @@ def wait_for_block(cli, height, timeout=240):
|
||||
|
||||
|
||||
def w3_wait_for_block(w3, height, timeout=240):
|
||||
for i in range(timeout * 2):
|
||||
for _ in range(timeout * 2):
|
||||
try:
|
||||
current_height = w3.eth.block_number
|
||||
except Exception as e:
|
||||
|
Loading…
Reference in New Issue
Block a user