Add `fast-runtime` Cargo Feature for Quick Test Runs (#4332)
* add fast-runtime feature for reduced session times * make democracy periods fast on fast-runtime * propagate fast-runtime feature through cargo.toml files * add fast motion and term durations to Kusama * Update runtime/westend/Cargo.toml Co-authored-by:Kian Paimani <5588131+kianenigma@users.noreply.github.com> * set session time to 2 minutes to avoid block production issues * formatting * update Substrate * set democracy fast periods back to 1min * set launch period and enactment period to 1 block in fast-runtime * remove unnecessary westend period configs * add prod_or_test macro to allow specifying prod, test and env values for parameter types * move prod_or_test macro into common module and use it consistently * rename macro to prod_or_fast * cargo +nightly fmt * bump impl_versions * newline Co-authored-by:
Kian Paimani <5588131+kianenigma@users.noreply.github.com> * add note that env variable is evaluated at compile time * newline Co-authored-by:
Kian Paimani <5588131+kianenigma@users.noreply.github.com> * newline Co-authored-by:
Kian Paimani <5588131+kianenigma@users.noreply.github.com> * cargo fmt * impl_version: 0 * impl_version: 0 * use prod_or_fast macro for LeasePeriod and LeaseOffset * use prod_or_fast macro in WND and ROC constants Co-authored-by:
Kian Paimani <5588131+kianenigma@users.noreply.github.com> Co-authored-by:
Giles Cope <gilescope@gmail.com>
Showing
- polkadot/Cargo.toml 1 addition, 1 deletionpolkadot/Cargo.toml
- polkadot/cli/Cargo.toml 1 addition, 0 deletionspolkadot/cli/Cargo.toml
- polkadot/node/service/Cargo.toml 7 additions, 0 deletionspolkadot/node/service/Cargo.toml
- polkadot/runtime/common/src/lib.rs 29 additions, 0 deletionspolkadot/runtime/common/src/lib.rs
- polkadot/runtime/kusama/Cargo.toml 4 additions, 0 deletionspolkadot/runtime/kusama/Cargo.toml
- polkadot/runtime/kusama/src/lib.rs 28 additions, 15 deletionspolkadot/runtime/kusama/src/lib.rs
- polkadot/runtime/polkadot/Cargo.toml 4 additions, 0 deletionspolkadot/runtime/polkadot/Cargo.toml
- polkadot/runtime/polkadot/src/lib.rs 28 additions, 15 deletionspolkadot/runtime/polkadot/src/lib.rs
- polkadot/runtime/rococo/Cargo.toml 3 additions, 0 deletionspolkadot/runtime/rococo/Cargo.toml
- polkadot/runtime/rococo/constants/src/lib.rs 4 additions, 1 deletionpolkadot/runtime/rococo/constants/src/lib.rs
- polkadot/runtime/westend/Cargo.toml 4 additions, 0 deletionspolkadot/runtime/westend/Cargo.toml
- polkadot/runtime/westend/constants/src/lib.rs 3 additions, 1 deletionpolkadot/runtime/westend/constants/src/lib.rs
- polkadot/runtime/westend/src/lib.rs 0 additions, 7 deletionspolkadot/runtime/westend/src/lib.rs
Please register or sign in to comment