-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
The subtensorAPI synchronous function get_stake_for_coldkey does not work for blocks before dTao implemented
ie less than 4920350
To Reproduce
run the following code
from bittensor import SubtensorApi
sub = SubtensorApi(network='archive',legacy_methods=True, async_subtensor=False)
# works
print(sub.get_stake_info_for_coldkey('5CQ6dMW8JZhKCZX9kWsZRqa3kZRKmNHxbPPVFEt6FgyvGv2G',4943592))
# fails
print(sub.get_stake_info_for_coldkey('5CQ6dMW8JZhKCZX9kWsZRqa3kZRKmNHxbPPVFEt6FgyvGv2G',4670227))
Expected behavior
return the same StakeInfo type as after dTao with None in unused fields and netuid = 0
Screenshots

Environment
Ubuntu 24.04.1 LTS bittensor 9.8.3 cli 9.8.5
Additional context
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working