Skip to content

Testnet Tensor 1.0.1 Parameters #14

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 1 commit into from
Mar 13, 2025
Merged
Changes from all commits
Commits
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
27 changes: 13 additions & 14 deletions pallets/network/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -829,20 +829,17 @@ pub mod pallet {
}
#[pallet::type_value]
pub fn DefaultMinSubnetNodes() -> u32 {
// testnet is 4
// 4
// local
// development and mainnet
// 6
// local && testnet
1
}
#[pallet::type_value]
pub fn DefaultMinSubnetRegistrationBlocks() -> u64 {
// 9 days at 6s blocks
// 129_600

// Testnet 1 hour
// 600

// Local 24 blocks

// Testnet && Local 24 blocks
25
}
#[pallet::type_value]
Expand Down Expand Up @@ -898,17 +895,18 @@ pub mod pallet {
1000e+18 as u128
}
#[pallet::type_value]
pub fn DefaultSubnetRegistrationFeePeriod() -> u32 {
100
}
#[pallet::type_value]
pub fn DefaultSubnetRegistrationInterval() -> u32 {
100
// 1 week based on 6s blocks using epochs
// 1008
// Testnet:
// * 1 hour, 600 blocks, 6 epochs
6
}
#[pallet::type_value]
pub fn DefaultMaxSubnetEntryInterval() -> u64 {
// 1 week based on 6s blocks
100800
// 100800
0
}

/// Count of subnets
Expand All @@ -925,6 +923,7 @@ pub mod pallet {
#[pallet::storage] // subnet_id => data struct
pub type SubnetsData<T: Config> = StorageMap<_, Blake2_128Concat, u32, SubnetData>;

// Max per subnet node entry interval to any given subnet
#[pallet::storage] // subnet_id => block_interval
pub type MaxSubnetEntryInterval<T: Config> = StorageValue<_, u64, ValueQuery, DefaultMaxSubnetEntryInterval>;

Expand Down
Loading