Skip to content

Commit 670e2a4

Browse files
committedJan 15, 2025
Updates stake_for_ck and versions
1 parent f34c620 commit 670e2a4

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed
 

‎CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 8.5.1rc8 /2025-01-15
4+
5+
## What's Changed
6+
* Updates `get_stake_for_coldkey` to return only non-zero stakes.
7+
* Bumps bittensor-cli
8+
39
## 8.5.1rc7 /2025-01-14
410

511
## What's Changed

‎VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.5.1rc7
1+
8.5.1rc8

‎bittensor/core/settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
1616
# DEALINGS IN THE SOFTWARE.
1717

18-
__version__ = "8.5.1rc7"
18+
__version__ = "8.5.1rc8"
1919

2020
import os
2121
import re

‎bittensor/core/subtensor.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1731,7 +1731,8 @@ def get_stake_for_coldkey(
17311731
except ValueError:
17321732
bytes_result = bytes.fromhex(hex_bytes_result)
17331733

1734-
return StakeInfo.list_from_vec_u8(bytes_result)
1734+
stakes = StakeInfo.list_from_vec_u8(bytes_result)
1735+
return [stake for stake in stakes if stake.stake > 0]
17351736

17361737
def get_stake_for_coldkey_and_hotkey(
17371738
self,

‎requirements/prod.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ wheel
22
setuptools~=70.0.0
33
aiohttp~=3.9
44
async-property==0.2.2
5-
bittensor-cli>=8.2.0rc10,<8.2.0rc999
5+
bittensor-cli>=8.2.0rc13,<8.2.0rc999
66
bt-decode==0.4.0
77
colorama~=0.4.6
88
fastapi~=0.110.1

0 commit comments

Comments
 (0)