Skip to content

Commit f7e8143

Browse files
authored
Merge pull request #3189 from opentensor/fix/roman/Transaction-has-an-ancient-birth-block
[WIP][v10]Transaction-has-an-ancient-birth-block
2 parents 97af804 + 5f6e8e4 commit f7e8143

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

bittensor/core/async_subtensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7937,7 +7937,7 @@ async def set_weights(
79377937
version_key: int = version_as_int,
79387938
*,
79397939
mev_protection: bool = DEFAULT_MEV_PROTECTION,
7940-
period: Optional[int] = 8,
7940+
period: Optional[int] = DEFAULT_PERIOD,
79417941
raise_error: bool = False,
79427942
wait_for_inclusion: bool = True,
79437943
wait_for_finalization: bool = True,

bittensor/core/subtensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6638,7 +6638,7 @@ def set_weights(
66386638
version_key: int = version_as_int,
66396639
*,
66406640
mev_protection: bool = DEFAULT_MEV_PROTECTION,
6641-
period: Optional[int] = 8,
6641+
period: Optional[int] = DEFAULT_PERIOD,
66426642
raise_error: bool = False,
66436643
wait_for_inclusion: bool = True,
66446644
wait_for_finalization: bool = True,

tests/unit_tests/test_subtensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3011,7 +3011,7 @@ def test_set_weights_with_commit_reveal_enabled(subtensor, fake_wallet, mocker):
30113011
wait_for_inclusion=fake_wait_for_inclusion,
30123012
wait_for_finalization=fake_wait_for_finalization,
30133013
block_time=12.0,
3014-
period=8,
3014+
period=DEFAULT_PERIOD,
30153015
raise_error=False,
30163016
mechid=0,
30173017
wait_for_revealed_execution=True,

0 commit comments

Comments
 (0)