File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -1243,17 +1243,6 @@ impl<T: Config> Pallet<T> {
12431243 let trust: Vec < u16 > = T :: SubnetInfo :: get_validator_trust ( netuid. into ( ) ) ;
12441244 let permit: Vec < bool > = T :: SubnetInfo :: get_validator_permit ( netuid. into ( ) ) ;
12451245
1246- if trust. len ( ) != permit. len ( ) {
1247- let trust_len = trust. len ( ) ;
1248- let permit_len = permit. len ( ) ;
1249- log:: debug!(
1250- "dissolve_all_lp: ValidatorTrust/Permit length mismatch: netuid={netuid:?}, trust_len={trust_len}, permit_len={permit_len}"
1251- ) ;
1252- return Err ( sp_runtime:: DispatchError :: Other (
1253- "validator_meta_len_mismatch" ,
1254- ) ) ;
1255- }
1256-
12571246 // Helper: pick target validator uid, only among permitted validators, by highest trust.
12581247 let pick_target_uid = |trust : & Vec < u16 > , permit : & Vec < bool > | -> Option < u16 > {
12591248 let mut best_uid: Option < usize > = None ;
You can’t perform that action at this time.
0 commit comments