runtime: Cargo feature to make block production faster#127
runtime: Cargo feature to make block production faster#127TheQuantumPhysicist merged 9 commits intostagingfrom
Conversation
|
OMG... I'm working on this RIGHT NOW... hehe. Good on you. I just called the feature |
Add a compilation-time feature to shorten the block interval to 3 seconds. Intended mainly for testing. Use the `--features short-block-time` switch to Cargo to enable.
e24e551 to
e9a5a93
Compare
Changed the feature name to yours. Are our code changes now byte-identical? 😄 |
Yep, except that I chose 5 seconds instead of 3. I think the shorter the better though. I just tested this in the functional tests and this seems to work and the tests are 3x fast. I'll add a commit with CI changes and then we merge. Then we get everyone to rebase on this if it passes here. |
Add a compilation-time feature to shorten the block interval to 3 seconds. Intended mainly for testing.
This is the approach to adjusting block interval that I found easiest to implement. The PR is mainly intended as a discussion starter. Do we want a command-line switch (would require some hacks)? Is this sufficient for testing?
Use
cargo build --release --features fastto enable 3s block times.