Skip to content

Commit

Permalink
development: Add max holds and max freezes to pallet-balances config.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdamian committed Nov 7, 2023
1 parent 23f44d4 commit 2b13734
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions runtime/development/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ parameter_types! {
// This is set to a value so you can still get some return without getting your account removed.
pub const ExistentialDeposit: Balance = 1 * MICRO_CFG;
// For weight estimation, we assume that the most locks on an individual account will be 50.
pub const MaxHolds: u32 = 50;
pub const MaxLocks: u32 = 50;
pub const MaxReserves: u32 = 50;
}
Expand All @@ -338,7 +339,9 @@ impl pallet_balances::Config for Runtime {
type ExistentialDeposit = ExistentialDeposit;
type FreezeIdentifier = ();
type HoldIdentifier = ();
type MaxFreezes = MaxFreezes;
type MaxFreezes = ();
type MaxHolds = MaxHolds;
type MaxHolds = frame_support::traits::ConstU32<1>;
type MaxLocks = MaxLocks;
type MaxReserves = MaxReserves;
Expand Down

0 comments on commit 2b13734

Please sign in to comment.