upgrade to ethermint v0.21.0 #99

Closed
0xmuralik wants to merge 384 commits from murali/update-fork into main
4 changed files with 5 additions and 5 deletions
Showing only changes of commit 192eb96358 - Show all commits

View File

@ -6,7 +6,7 @@
config: { config: {
consensus: { consensus: {
// larger timeout for more stable mempool tests // larger timeout for more stable mempool tests
timeout_commit: '10s', timeout_commit: '2s',
}, },
mempool: { mempool: {
// use v1 mempool to enable tx prioritization // use v1 mempool to enable tx prioritization

View File

@ -45,7 +45,7 @@ def test_pruned_node(pruned):
signed = sign_transaction(w3, tx, KEYS["validator"]) signed = sign_transaction(w3, tx, KEYS["validator"])
txhash = w3.eth.send_raw_transaction(signed.rawTransaction) txhash = w3.eth.send_raw_transaction(signed.rawTransaction)
print("wait for prunning happens") 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()) tx_receipt = w3.eth.get_transaction_receipt(txhash.hex())
assert len(tx_receipt.logs) == 1 assert len(tx_receipt.logs) == 1

View File

@ -93,7 +93,7 @@ def test_cosmovisor_upgrade(custom_ethermint: Ethermint):
""" """
cli = custom_ethermint.cosmos_cli() cli = custom_ethermint.cosmos_cli()
height = cli.block_height() height = cli.block_height()
target_height = height + 5 target_height = height + 10
print("upgrade height", target_height) print("upgrade height", target_height)
w3 = custom_ethermint.w3 w3 = custom_ethermint.w3

View File

@ -80,7 +80,7 @@ def wait_for_new_blocks(cli, n):
def wait_for_block(cli, height, timeout=240): def wait_for_block(cli, height, timeout=240):
for i in range(timeout * 2): for _ in range(timeout * 2):
try: try:
status = cli.status() status = cli.status()
except AssertionError as e: 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): def w3_wait_for_block(w3, height, timeout=240):
for i in range(timeout * 2): for _ in range(timeout * 2):
try: try:
current_height = w3.eth.block_number current_height = w3.eth.block_number
except Exception as e: except Exception as e: