Use `max_code_size` and `max_wasm_data_size` from Parachains Configuration (#3329)
* use `configuration::config()` for max bytes
* Update integration_tests.rs
* Update paras_registrar.rs
* remove consts
* add asserts for non-zero
* more const clean up
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_common::paras_registrar --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_common_paras_registrar.rs
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_common::paras_registrar --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_common_paras_registrar.rs
* add checks to `MAX_CODE_SIZE`
* re-pot MAX_POV_SIZE
* check pov limit in runtime
* POV_BOMB_LIMIT multiplier
* fix compile
* Update configuration.rs
* Update node/primitives/src/lib.rs
* fix test
Co-authored-by:
Parity Bot <admin@parity.io>
Showing
- polkadot/node/network/protocol/src/request_response/mod.rs 1 addition, 2 deletionspolkadot/node/network/protocol/src/request_response/mod.rs
- polkadot/node/primitives/src/lib.rs 3 additions, 6 deletionspolkadot/node/primitives/src/lib.rs
- polkadot/node/service/src/chain_spec.rs 1 addition, 2 deletionspolkadot/node/service/src/chain_spec.rs
- polkadot/node/test/service/src/chain_spec.rs 3 additions, 3 deletionspolkadot/node/test/service/src/chain_spec.rs
- polkadot/primitives/src/v1/mod.rs 13 additions, 0 deletionspolkadot/primitives/src/v1/mod.rs
- polkadot/runtime/common/src/integration_tests.rs 32 additions, 29 deletionspolkadot/runtime/common/src/integration_tests.rs
- polkadot/runtime/common/src/paras_registrar.rs 42 additions, 35 deletionspolkadot/runtime/common/src/paras_registrar.rs
- polkadot/runtime/kusama/src/constants.rs 0 additions, 10 deletionspolkadot/runtime/kusama/src/constants.rs
- polkadot/runtime/kusama/src/lib.rs 2 additions, 6 deletionspolkadot/runtime/kusama/src/lib.rs
- polkadot/runtime/kusama/src/weights/runtime_common_paras_registrar.rs 9 additions, 9 deletions...time/kusama/src/weights/runtime_common_paras_registrar.rs
- polkadot/runtime/parachains/src/configuration.rs 15 additions, 1 deletionpolkadot/runtime/parachains/src/configuration.rs
- polkadot/runtime/rococo/src/constants.rs 0 additions, 5 deletionspolkadot/runtime/rococo/src/constants.rs
- polkadot/runtime/rococo/src/lib.rs 1 addition, 5 deletionspolkadot/runtime/rococo/src/lib.rs
- polkadot/runtime/westend/src/lib.rs 0 additions, 4 deletionspolkadot/runtime/westend/src/lib.rs
- polkadot/runtime/westend/src/weights/runtime_common_paras_registrar.rs 9 additions, 9 deletions...ime/westend/src/weights/runtime_common_paras_registrar.rs
Please register or sign in to comment