This commit is contained in:
0xmuralik 2023-03-13 15:42:04 +05:30
parent e5a3b065e4
commit 761d656295
3 changed files with 7 additions and 8 deletions

View File

@ -15,9 +15,7 @@ def geth(tmp_path_factory):
yield from setup_geth(path, 8545)
@pytest.fixture(
scope="session", params=["ethermint", "ethermint-ws"]
)
@pytest.fixture(scope="session", params=["ethermint", "ethermint-ws"])
def ethermint_rpc_ws(request, ethermint):
"""
run on both ethermint and ethermint websocket

View File

@ -193,9 +193,10 @@ def test_native_tx_priority(ethermint):
print(tx_indexes)
# the first sent tx are included later, because of lower priority
# ensure desc within continuous block
assert all((
b1 < b2 or (b1 == b2 and i1 > i2)
) for (b1, i1), (b2, i2) in zip(tx_indexes, tx_indexes[1:]))
assert all(
(b1 < b2 or (b1 == b2 and i1 > i2))
for (b1, i1), (b2, i2) in zip(tx_indexes, tx_indexes[1:])
)
def get_max_priority_price(max_priority_price):