Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions bittensor_cli/src/bittensor/subtensor_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -1249,6 +1249,9 @@ async def create_signed(call_to_sign, n):
)
inner_hash = ""
if mev_protection:
max_mev_era = 8
if era is not None and era["period"] > max_mev_era:
era = {"period": max_mev_era}
next_nonce = await self.substrate.get_account_next_index(
keypair.ss58_address
)
Expand Down
2 changes: 2 additions & 0 deletions tests/e2e_tests/test_coldkey_swap.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ def test_coldkey_swap_dispute(local_chain, wallet_setup):
"Created for e2e coldkey swap dispute test",
"--no-prompt",
"--json-output",
"--no-mev-protection",
],
)
create_payload = json.loads(create_sn.stdout)
Expand Down Expand Up @@ -403,6 +404,7 @@ def test_coldkey_swap_dispute(local_chain, wallet_setup):
"--new-coldkey",
wallet_new.coldkeypub.ss58_address,
"--no-prompt",
"--no-mev-protection",
],
)
assert "ColdkeySwapDisputed" in execute.stderr, execute.stderr
Expand Down