Skip to content

Commit 1bed73f

Browse files
authored
Merge branch 'staging' into fix-pr-template
2 parents 23f25a3 + e52602e commit 1bed73f

File tree

10 files changed

+23
-13
lines changed

10 files changed

+23
-13
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## 9.6.2 /2025-05-29
4+
5+
## What's Changed
6+
* Add `get_subnet_info` by @basfroman in https://github.com/opentensor/bittensor/pull/2894
7+
* Fix bug in `get_next_epoch_start_block` by @basfroman in https://github.com/opentensor/bittensor/pull/2899
8+
* e2e workflow: improve skipping logic (no error when skip the job) by @basfroman in https://github.com/opentensor/bittensor/pull/2898
9+
* Replace `transfer_allow_death` with `transfer_keep_alive` by @basfroman in https://github.com/opentensor/bittensor/pull/2900
10+
11+
**Full Changelog**: https://github.com/opentensor/bittensor/compare/v9.6.1...v9.6.2
12+
313
## 9.6.1 /2025-05-22
414

515
## What's Changed

bittensor/core/async_subtensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2322,7 +2322,7 @@ async def get_transfer_fee(
23222322

23232323
call = await self.substrate.compose_call(
23242324
call_module="Balances",
2325-
call_function="transfer_allow_death",
2325+
call_function="transfer_keep_alive",
23262326
call_params={"dest": dest, "value": value.rao},
23272327
)
23282328

bittensor/core/extrinsics/asyncex/transfer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ async def _do_transfer(
4545
"""
4646
call = await subtensor.substrate.compose_call(
4747
call_module="Balances",
48-
call_function="transfer_allow_death",
48+
call_function="transfer_keep_alive",
4949
call_params={"dest": destination, "value": amount.rao},
5050
)
5151

bittensor/core/extrinsics/transfer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def _do_transfer(
4444
"""
4545
call = subtensor.substrate.compose_call(
4646
call_module="Balances",
47-
call_function="transfer_allow_death",
47+
call_function="transfer_keep_alive",
4848
call_params={"dest": destination, "value": amount.rao},
4949
)
5050

bittensor/core/subtensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1831,7 +1831,7 @@ def get_transfer_fee(self, wallet: "Wallet", dest: str, value: Balance) -> Balan
18311831
value = check_and_convert_to_balance(value)
18321832
call = self.substrate.compose_call(
18331833
call_module="Balances",
1834-
call_function="transfer_allow_death",
1834+
call_function="transfer_keep_alive",
18351835
call_params={"dest": dest, "value": value.rao},
18361836
)
18371837

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "bittensor"
7-
version = "9.6.1"
7+
version = "9.6.2"
88
description = "Bittensor"
99
readme = "README.md"
1010
authors = [

tests/unit_tests/extrinsics/asyncex/test_transfer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ async def test_do_transfer_success(subtensor, fake_wallet, mocker):
3232
# Asserts
3333
subtensor.substrate.compose_call.assert_awaited_once_with(
3434
call_module="Balances",
35-
call_function="transfer_allow_death",
35+
call_function="transfer_keep_alive",
3636
call_params={"dest": fake_destination, "value": fake_amount.rao},
3737
)
3838

@@ -77,7 +77,7 @@ async def test_do_transfer_failure(subtensor, fake_wallet, mocker):
7777
# Asserts
7878
subtensor.substrate.compose_call.assert_awaited_once_with(
7979
call_module="Balances",
80-
call_function="transfer_allow_death",
80+
call_function="transfer_keep_alive",
8181
call_params={"dest": fake_destination, "value": fake_amount.rao},
8282
)
8383

@@ -124,7 +124,7 @@ async def test_do_transfer_no_waiting(subtensor, fake_wallet, mocker):
124124
# Asserts
125125
subtensor.substrate.compose_call.assert_awaited_once_with(
126126
call_module="Balances",
127-
call_function="transfer_allow_death",
127+
call_function="transfer_keep_alive",
128128
call_params={"dest": fake_destination, "value": fake_amount.rao},
129129
)
130130

tests/unit_tests/extrinsics/test_transfer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def test_do_transfer_is_success_true(subtensor, fake_wallet, mocker):
2626
# Asserts
2727
subtensor.substrate.compose_call.assert_called_once_with(
2828
call_module="Balances",
29-
call_function="transfer_allow_death",
29+
call_function="transfer_keep_alive",
3030
call_params={"dest": fake_dest, "value": fake_transfer_balance.rao},
3131
)
3232
subtensor.sign_and_send_extrinsic.assert_called_once_with(
@@ -64,7 +64,7 @@ def test_do_transfer_is_success_false(subtensor, fake_wallet, mocker):
6464
# Asserts
6565
subtensor.substrate.compose_call.assert_called_once_with(
6666
call_module="Balances",
67-
call_function="transfer_allow_death",
67+
call_function="transfer_keep_alive",
6868
call_params={"dest": fake_dest, "value": fake_transfer_balance.rao},
6969
)
7070
subtensor.sign_and_send_extrinsic.assert_called_once_with(
@@ -103,7 +103,7 @@ def test_do_transfer_no_waits(subtensor, fake_wallet, mocker):
103103
# Asserts
104104
subtensor.substrate.compose_call.assert_called_once_with(
105105
call_module="Balances",
106-
call_function="transfer_allow_death",
106+
call_function="transfer_keep_alive",
107107
call_params={"dest": fake_dest, "value": fake_transfer_balance.rao},
108108
)
109109
subtensor.sign_and_send_extrinsic.assert_called_once_with(

tests/unit_tests/test_async_subtensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ async def test_get_transfer_fee(subtensor, fake_wallet, mocker, balance):
707707
mocked_compose_call.assert_awaited_once()
708708
mocked_compose_call.assert_called_once_with(
709709
call_module="Balances",
710-
call_function="transfer_allow_death",
710+
call_function="transfer_keep_alive",
711711
call_params={
712712
"dest": fake_dest,
713713
"value": fake_value.rao,

tests/unit_tests/test_subtensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1877,7 +1877,7 @@ def test_get_transfer_fee(subtensor, fake_wallet, mocker):
18771877
# Asserts
18781878
subtensor.substrate.compose_call.assert_called_once_with(
18791879
call_module="Balances",
1880-
call_function="transfer_allow_death",
1880+
call_function="transfer_keep_alive",
18811881
call_params={"dest": fake_dest, "value": value.rao},
18821882
)
18831883

0 commit comments

Comments
 (0)