Skip to content

Commit b05e213

Browse files
committed
use get_priority_staking for all stake operations
1 parent bf1933c commit b05e213

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pallets/subtensor/src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1947,7 +1947,7 @@ where
19471947
max_amount,
19481948
*allow_partial,
19491949
),
1950-
Self::get_priority_vanilla(),
1950+
Self::get_priority_staking(who, hotkey),
19511951
)
19521952
}
19531953
Some(Call::remove_stake {
@@ -1988,7 +1988,7 @@ where
19881988
max_amount,
19891989
*allow_partial,
19901990
),
1991-
Self::get_priority_vanilla(),
1991+
Self::get_priority_staking(who, hotkey),
19921992
)
19931993
}
19941994
Some(Call::move_stake {
@@ -2012,7 +2012,7 @@ where
20122012
None,
20132013
false,
20142014
),
2015-
Self::get_priority_vanilla(),
2015+
Self::get_priority_staking(who, origin_hotkey),
20162016
)
20172017
}
20182018
Some(Call::transfer_stake {
@@ -2036,7 +2036,7 @@ where
20362036
None,
20372037
true,
20382038
),
2039-
Self::get_priority_vanilla(),
2039+
Self::get_priority_staking(who, hotkey),
20402040
)
20412041
}
20422042
Some(Call::swap_stake {
@@ -2059,7 +2059,7 @@ where
20592059
None,
20602060
false,
20612061
),
2062-
Self::get_priority_vanilla(),
2062+
Self::get_priority_staking(who, hotkey),
20632063
)
20642064
}
20652065
Some(Call::swap_stake_limit {
@@ -2091,7 +2091,7 @@ where
20912091
Some(*allow_partial),
20922092
false,
20932093
),
2094-
Self::get_priority_vanilla(),
2094+
Self::get_priority_staking(who, hotkey),
20952095
)
20962096
}
20972097
Some(Call::register { netuid, .. } | Call::burned_register { netuid, .. }) => {

0 commit comments

Comments
 (0)