Skip to content

Commit 75c0d6e

Browse files
committed
set init bonds penalty to 1.0 (u16 max)
1 parent 22aefdd commit 75c0d6e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pallets/subtensor/src/tests/mock.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ parameter_types! {
138138
pub const InitialImmunityPeriod: u16 = 2;
139139
pub const InitialMaxAllowedUids: u16 = 2;
140140
pub const InitialBondsMovingAverage: u64 = 900_000;
141-
pub const InitialBondsPenalty:u16 = 0;
141+
pub const InitialBondsPenalty:u16 = u16::MAX;
142142
pub const InitialStakePruningMin: u16 = 0;
143143
pub const InitialFoundationDistribution: u64 = 0;
144144
pub const InitialDefaultDelegateTake: u16 = 11_796; // 18%, same as in production

runtime/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ parameter_types! {
10101010
pub const SubtensorInitialMaxRegistrationsPerBlock: u16 = 1;
10111011
pub const SubtensorInitialPruningScore : u16 = u16::MAX;
10121012
pub const SubtensorInitialBondsMovingAverage: u64 = 900_000;
1013-
pub const SubtensorInitialBondsPenalty: u16 = 0;
1013+
pub const SubtensorInitialBondsPenalty: u16 = u16::MAX;
10141014
pub const SubtensorInitialDefaultTake: u16 = 11_796; // 18% honest number.
10151015
pub const SubtensorInitialMinDelegateTake: u16 = 0; // Allow 0% delegate take
10161016
pub const SubtensorInitialDefaultChildKeyTake: u16 = 0; // Allow 0% childkey take

0 commit comments

Comments
 (0)