autonomys / subspace

Subspace Network reference implementation
https://subspace.network
368 stars 242 forks source link

Add `fast-runtime` feature for faster time constants for local testing #2822

Open dastansam opened 3 months ago

dastansam commented 3 months ago

This came up when testing upgrade_domain_runtime in a local network. In addition to RuntimeUpgradeDelay, we could set other timing constants to faster values as well

NingLin-P commented 3 months ago

Make sense, I usually update these constants manually before building the binary for the local test network.

An alternative is to move these constants to pallet-runtime-config and export extrinsic to update these values, though extract effort is required to ensure the update will take effect as expected.

nazar-pc commented 3 months ago

I usually just update the things I need and often store in chain spec so it doesn't change between recompilations when many restarts are needed. Not sure about the feature though.