Skip to content

Commit f29c736

Browse files
author
unconst
committed
no tao in for non registration
1 parent 8ec029d commit f29c736

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pallets/subtensor/src/coinbase/run_coinbase.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ impl<T: Config> Pallet<T> {
7474
log::debug!("alpha_in_i: {:?}", alpha_in_i);
7575
// Get alpha_out.
7676
let alpha_out_i = alpha_emission_i;
77+
// Only emit TAO if the subnetwork allows registration.
78+
if !Self::get_network_registration_allowed(*netuid)
79+
&& Self::get_network_pow_registration_allowed(*netuid)
80+
{
81+
tao_in_i = asfloat!( 0.0 );
82+
}
7783
// Insert values into maps
7884
tao_in.insert(*netuid_i, tao_in_i);
7985
alpha_in.insert(*netuid_i, alpha_in_i);

0 commit comments

Comments
 (0)