We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7a64ba commit 75ccbf1Copy full SHA for 75ccbf1
pallets/subtensor/src/lib.rs
@@ -1461,6 +1461,18 @@ where
1461
Err(InvalidTransaction::Custom(2).into())
1462
}
1463
1464
+ Some(Call::batch_reveal_weights { netuid, .. }) => {
1465
+ if Self::check_weights_min_stake(who) {
1466
+ let priority: u64 = Self::get_priority_set_weights(who, *netuid);
1467
+ Ok(ValidTransaction {
1468
+ priority,
1469
+ longevity: 1,
1470
+ ..Default::default()
1471
+ })
1472
+ } else {
1473
+ Err(InvalidTransaction::Custom(6).into())
1474
+ }
1475
1476
Some(Call::set_weights { netuid, .. }) => {
1477
if Self::check_weights_min_stake(who) {
1478
let priority: u64 = Self::get_priority_set_weights(who, *netuid);
0 commit comments