We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9de4ccf commit 5f52258Copy full SHA for 5f52258
bittensor_cli/src/commands/subnets/price.py
@@ -52,7 +52,17 @@ async def price(
52
53
step = 300
54
start_block = max(0, current_block - total_blocks)
55
- block_numbers = list(range(start_block, current_block + 1, step))
+
56
+ # snap start block down to nearest multiple of 10
57
+ start_block -= start_block % 10
58
59
+ block_numbers = []
60
+ for b in range(start_block, current_block + 1, step):
61
+ if b == current_block:
62
+ block_numbers.append(b) # exact current block
63
+ else:
64
+ block_numbers.append(b - (b % 5)) # snap down to multiple of 10
65
+ block_numbers = sorted(set(block_numbers))
66
67
# Block hashes
68
block_hash_cors = [
0 commit comments