referrerpolicy=no-referrer-when-downgrade

worst_case_decodable_blob

Function worst_case_decodable_blob 

Source
pub fn worst_case_decodable_blob(target_bytes: u32) -> Vec<u8> 
Expand description

The worst case for WeightInfo::decode_xcm: an encoded VersionedXcm<()> of at least target_bytes bytes, as expensive to decode as the format allows.

MAX_INSTRUCTIONS_TO_DECODE caps the instruction count, so bytes past a hundred have to come from payloads. The densest decodable one is ReserveAssetDeposited carrying max-length asset ids, where nearly every byte is a nested enum or bounded-vec decode rather than a byte copy.