Skip to content

Commit efc4cb1

Browse files
committed
update storage weights
1 parent 622b5b3 commit efc4cb1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

runtime/src/lib.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,8 +480,11 @@ impl pallet_sudo::Config for Runtime {
480480
}
481481

482482
parameter_types! {
483-
// One storage item; key size is 32; value is size 4+4+16+32 bytes = 56 bytes.
484-
pub const DepositBase: Balance = deposit(1, 88);
483+
// According to multisig pallet, key and value size be computed as follows:
484+
// value size is `4 + sizeof((BlockNumber, Balance, AccountId))` bytes
485+
// key size is `32 + sizeof(AccountId)` bytes.
486+
// For our case, One storage item; key size is 32+32=64 bytes; value is size 4+4+8+32 bytes = 48 bytes.
487+
pub const DepositBase: Balance = deposit(1, 112);
485488
// Additional storage item size of 32 bytes.
486489
pub const DepositFactor: Balance = deposit(0, 32);
487490
pub const MaxSignatories: u32 = 100;

0 commit comments

Comments
 (0)