Skip to content

Commit a60fd83

Browse files
fix: next_tempo should always return next upcoming epoch
1 parent e4f3ca9 commit a60fd83

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/e2e_tests/utils/chain_interactions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ def next_tempo(current_block: int, tempo: int, netuid: int) -> int:
105105
Returns:
106106
int: The next tempo block number.
107107
"""
108+
current_block += 1
108109
interval = tempo + 1
109110
last_epoch = current_block - 1 - (current_block + netuid + 1) % interval
110111
next_tempo_ = last_epoch + interval

0 commit comments

Comments
 (0)