Skip to content

Commit 26ff5c3

Browse files
hotfix: dont payout if reg disabled
1 parent 4e2c494 commit 26ff5c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pallets/subtensor/src/coinbase/run_coinbase.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ impl<T: Config> Pallet<T> {
4848
// --- 3. Drain the subnet block emission and accumulate it as subnet emission, which increases until the tempo is reached in #4.
4949
// subnet_blockwise_emission -> subnet_pending_emission
5050
for netuid in subnets.clone().iter() {
51-
if *netuid == 0 {
51+
if *netuid == 0 && && !Self::registration_allowed(netuid) {
5252
continue;
5353
}
5454
// --- 3.1 Get the network's block-wise emission amount.
@@ -90,7 +90,7 @@ impl<T: Config> Pallet<T> {
9090
Self::set_blocks_since_last_step(*netuid, 0);
9191
Self::set_last_mechanism_step_block(*netuid, current_block);
9292

93-
if *netuid == 0 {
93+
if *netuid == 0 && !Self::registration_allowed(netuid) {
9494
// Skip netuid 0 payouts
9595
continue;
9696
}

0 commit comments

Comments
 (0)