Skip to content

Commit

Permalink
fix: compile errs
Browse files Browse the repository at this point in the history
  • Loading branch information
functor-flow committed Nov 23, 2024
1 parent 19c6c33 commit 577b98f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion pallets/offworker/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ use frame_system::{
},
pallet_prelude::BlockNumberFor,
};

use pallet_subnet_emission::{
subnet_consensus::{
util::{
Expand All @@ -22,7 +23,7 @@ use pallet_subnet_emission::{
yuma::YumaEpoch,
},
types::{BlockWeights, PublicKey},
Authorities, SubnetDecryptionData,
Authorities, DecryptionNodeBanQueue, SubnetDecryptionData,
};

use sp_std::collections::btree_map::BTreeMap;
Expand Down
4 changes: 2 additions & 2 deletions pallets/subnet_emission/src/decryption.rs
Original file line number Diff line number Diff line change
Expand Up @@ -469,9 +469,9 @@ impl<T: Config> Pallet<T> {
);
}

pub(crate) fn process_ban_queue(block_number: &u64) {
pub(crate) fn process_ban_queue(block_number: u64) {
DecryptionNodeBanQueue::<T>::iter()
.filter(|(_, _, ban_block)| ban_block <= block_number)
.filter(|(_, _, ban_block)| *ban_block <= block_number)
.for_each(|(subnet_id, node_id, _ban_block)| {
// Get the node info before removing from queue
if let Some(info) = SubnetDecryptionData::<T>::get(subnet_id) {
Expand Down
2 changes: 1 addition & 1 deletion runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("node-subspace"),
impl_name: create_runtime_str!("node-subspace"),
authoring_version: 1,
spec_version: 508,
spec_version: 509,
impl_version: 1,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down

0 comments on commit 577b98f

Please sign in to comment.