mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 23:21:02 +00:00
Box large arguments of GRANDPA pallet (#1154)
* box large arguments * benchmarks * fix
This commit is contained in:
committed by
Bastian Köcher
parent
782d37522f
commit
084da4343d
@@ -1377,4 +1377,12 @@ mod tests {
|
||||
additional_amount
|
||||
});
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn call_size() {
|
||||
// pallets that are (to be) used by polkadot runtime
|
||||
const MAX_CALL_SIZE: usize = 230; // value from polkadot-runtime tests
|
||||
assert!(core::mem::size_of::<pallet_bridge_grandpa::Call<Runtime>>() <= MAX_CALL_SIZE);
|
||||
assert!(core::mem::size_of::<pallet_bridge_messages::Call<Runtime>>() <= MAX_CALL_SIZE);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user