File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
pallets/subtensor/src/tests Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,21 @@ fn test_coinbase_tao_issuance_base() {
80
80
} ) ;
81
81
}
82
82
83
+ // SKIP_WASM_BUILD=1 RUST_LOG=debug cargo test --package pallet-subtensor --lib -- tests::coinbase::test_coinbase_tao_issuance_base_low --exact --show-output --nocapture
84
+ #[ test]
85
+ fn test_coinbase_tao_issuance_base_low ( ) {
86
+ new_test_ext ( 1 ) . execute_with ( || {
87
+ let netuid: u16 = 1 ;
88
+ let emission: u64 = 1 ;
89
+ add_network ( netuid, 1 , 0 ) ;
90
+ assert_eq ! ( SubnetTAO :: <Test >:: get( netuid) , 0 ) ;
91
+ SubtensorModule :: run_coinbase ( I96F32 :: from_num ( emission) ) ;
92
+ assert_eq ! ( SubnetTAO :: <Test >:: get( netuid) , emission) ;
93
+ assert_eq ! ( TotalIssuance :: <Test >:: get( ) , emission) ;
94
+ assert_eq ! ( TotalStake :: <Test >:: get( ) , emission) ;
95
+ } ) ;
96
+ }
97
+
83
98
// Test emission distribution across multiple subnets.
84
99
// This test verifies that:
85
100
// - Multiple subnets receive equal portions of the total emission
Original file line number Diff line number Diff line change @@ -1052,7 +1052,7 @@ parameter_types! {
1052
1052
pub const SubtensorInitialNetworkMaxStake : u64 = u64 :: MAX ; // Maximum possible value for u64, this make the make stake infinity
1053
1053
pub const InitialColdkeySwapScheduleDuration : BlockNumber = 5 * 24 * 60 * 60 / 12 ; // 5 days
1054
1054
pub const InitialDissolveNetworkScheduleDuration : BlockNumber = 5 * 24 * 60 * 60 / 12 ; // 5 days
1055
- pub const SubtensorInitialTaoWeight : u64 = 332_041_393_326_771_929 ; // 18% global weigh .
1055
+ pub const SubtensorInitialTaoWeight : u64 = 971_718_665_099_567_868 ; // 0.05267697438728329% tao weight .
1056
1056
}
1057
1057
1058
1058
impl pallet_subtensor:: Config for Runtime {
You can’t perform that action at this time.
0 commit comments