Skip to content

Commit b2385bd

Browse files
committed
add comments for pallet config in test
1 parent 8458abe commit b2385bd

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

pallets/subtensor/src/tests/mock.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -428,15 +428,17 @@ impl pallet_crowdloan::Config for Test {
428428

429429
// Proxy Pallet config
430430
parameter_types! {
431-
// One storage item; key size sizeof(AccountId) = 32, value sizeof(Balance) = 8; 40 total
431+
// Set as 1 for testing purposes
432432
pub const ProxyDepositBase: Balance = 1;
433-
// Adding 32 bytes + sizeof(ProxyType) = 32 + 1
433+
// Set as 1 for testing purposes
434434
pub const ProxyDepositFactor: Balance = 1;
435+
// Set as 20 for testing purposes
435436
pub const MaxProxies: u32 = 20; // max num proxies per acct
436-
pub const MaxPending: u32 = 15 * 5; // max blocks pending ~15min
437-
// 16 bytes
437+
// Set as 15 for testing purposes
438+
pub const MaxPending: u32 = 15; // max blocks pending ~15min
439+
// Set as 1 for testing purposes
438440
pub const AnnouncementDepositBase: Balance = 1;
439-
// 68 bytes per announcement
441+
// Set as 1 for testing purposes
440442
pub const AnnouncementDepositFactor: Balance = 1;
441443
}
442444

0 commit comments

Comments
 (0)