mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 23:21:02 +00:00
Limit max call size of Rialto/Millau runtimes (#1187)
* max call size <= 230 bytes * fix benchmarks
This commit is contained in:
committed by
Bastian Köcher
parent
b60df0849c
commit
7b4f1c2236
@@ -844,9 +844,7 @@ mod tests {
|
||||
|
||||
#[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);
|
||||
assert!(core::mem::size_of::<Call>() <= MAX_CALL_SIZE);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user