Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushmishra2005 committed Dec 17, 2024
1 parent 5e14dea commit 020ff2c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion runtime/cere-dev/src/governance/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ parameter_types! {
}

parameter_types! {
pub const MaxBalance: Balance = Balance::max_value();
pub const MaxBalance: Balance = Balance::MAX;
}

pub type TreasurySpender = EitherOf<EnsureRootWithSuccess<AccountId, MaxBalance>, Spender>;
Expand Down
4 changes: 2 additions & 2 deletions runtime/cere-dev/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -902,9 +902,9 @@ impl pallet_sudo::Config for Runtime {
}

parameter_types! {
pub const ImOnlineUnsignedPriority: TransactionPriority = TransactionPriority::max_value();
pub const ImOnlineUnsignedPriority: TransactionPriority = TransactionPriority::MAX;
/// We prioritize im-online heartbeats over election solution submission.
pub const StakingUnsignedPriority: TransactionPriority = TransactionPriority::max_value() / 2;
pub const StakingUnsignedPriority: TransactionPriority = TransactionPriority::MAX / 2;
pub const MaxAuthorities: u32 = 100;
pub const MaxKeys: u32 = 10_000;
pub const MaxPeerInHeartbeats: u32 = 10_000;
Expand Down
2 changes: 1 addition & 1 deletion runtime/cere/src/governance/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ parameter_types! {
}

parameter_types! {
pub const MaxBalance: Balance = Balance::max_value();
pub const MaxBalance: Balance = Balance::MAX;
}
pub type TreasurySpender = EitherOf<EnsureRootWithSuccess<AccountId, MaxBalance>, Spender>;

Expand Down
4 changes: 2 additions & 2 deletions runtime/cere/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -904,9 +904,9 @@ impl pallet_sudo::Config for Runtime {
}

parameter_types! {
pub const ImOnlineUnsignedPriority: TransactionPriority = TransactionPriority::max_value();
pub const ImOnlineUnsignedPriority: TransactionPriority = TransactionPriority::MAX;
/// We prioritize im-online heartbeats over election solution submission.
pub const StakingUnsignedPriority: TransactionPriority = TransactionPriority::max_value() / 2;
pub const StakingUnsignedPriority: TransactionPriority = TransactionPriority::MAX / 2;
pub const MaxAuthorities: u32 = 100;
pub const MaxKeys: u32 = 10_000;
pub const MaxPeerInHeartbeats: u32 = 10_000;
Expand Down

0 comments on commit 020ff2c

Please sign in to comment.