Skip to content

hotfix/set-root-weights #527

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 32 commits into from
Jun 14, 2024
Merged
Changes from 2 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
201c15e
fix
JohnReedV Jun 13, 2024
7113573
fix priority
JohnReedV Jun 13, 2024
7408aca
root weight dipatch test
Jun 13, 2024
e8b03cb
chore: bump spec version
Jun 13, 2024
b52e2e5
update localnet script
Jun 13, 2024
0a5368a
chore: run ci on every push
Jun 13, 2024
a2464b8
fix : ci rust
Jun 13, 2024
dd78f0e
chore: uncomment push conditions
Jun 13, 2024
7682875
chore: lint
Jun 13, 2024
d237974
chore: silence clippy in tests
Jun 13, 2024
f9ff8d1
chore: fmt
Jun 13, 2024
398b8f5
chore: use stable in ci
Jun 13, 2024
2bf5a35
chore: comment out clippy
Jun 13, 2024
fc2bf27
add test for root weights transaction validation
camfairchild Jun 14, 2024
07cf0e0
also test commit/reveal transaction validity check
camfairchild Jun 14, 2024
e42c10a
uncomment ci
Jun 14, 2024
c638e59
chore: clippy
Jun 14, 2024
98ed152
fix clippy
open-junius Jun 14, 2024
673d619
fix clippy
open-junius Jun 14, 2024
3656126
fix clippy
open-junius Jun 14, 2024
530b05d
fix clippy
open-junius Jun 14, 2024
7173614
fix clippy
open-junius Jun 14, 2024
8445ab7
fix clippy
open-junius Jun 14, 2024
cecdf02
fix clippy
open-junius Jun 14, 2024
edce0dd
fix clippy
open-junius Jun 14, 2024
2b07546
fix clippy
open-junius Jun 14, 2024
6cccfb5
fix clippy
open-junius Jun 14, 2024
ef4b241
fix: fast blocks false
Jun 14, 2024
eba20c2
chore: remove hard coded false
Jun 14, 2024
d16970a
Update pallets/subtensor/tests/block_step.rs
distributedstatemachine Jun 14, 2024
5a40b75
Update pallets/subtensor/tests/block_step.rs
distributedstatemachine Jun 14, 2024
87e47c5
clippy: just block
camfairchild Jun 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pallets/subtensor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2219,9 +2219,9 @@ where
Err(InvalidTransaction::Call.into())
}
}
Some(Call::set_root_weights { netuid, .. }) => {
if Self::check_weights_min_stake(who) {
let priority: u64 = Self::get_priority_set_weights(who, *netuid);
Some(Call::set_root_weights { netuid, hotkey, .. }) => {
if Self::check_weights_min_stake(hotkey) {
let priority: u64 = Self::get_priority_set_weights(hotkey, *netuid);
Ok(ValidTransaction {
priority,
longevity: 1,
Expand Down
Loading