diff --git a/pallets/subtensor/src/delegate_info.rs b/pallets/subtensor/src/delegate_info.rs index e4c9fb6eaf..a3c3234077 100644 --- a/pallets/subtensor/src/delegate_info.rs +++ b/pallets/subtensor/src/delegate_info.rs @@ -26,6 +26,8 @@ impl Pallet { let mut nominators = Vec::<(T::AccountId, Compact)>::new(); for ( nominator, stake ) in < Stake as IterableStorageDoubleMap >::iter_prefix( delegate.clone() ) { + if stake == 0 { continue; } + // Only add nominators with stake nominators.push( ( nominator.clone(), stake.into() ) ); } diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 6bc8f22eb7..6bc502d057 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -111,7 +111,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { // `spec_version`, and `authoring_version` are the same between Wasm and native. // This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use // the compatible custom types. - spec_version: 115, + spec_version: 117, impl_version: 1, apis: RUNTIME_API_VERSIONS, transaction_version: 1,