-
Notifications
You must be signed in to change notification settings - Fork 273
set default start call time as 0 #2341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
We should merge this in so localnet fastblocks also have the new 0 period for the start call. |
|
…ate-localnet-genesis Update: Use default runtime constant for start call in localnet.sh
| // 7 * 24 * 60 * 60 / 12 = 7 days | ||
| pub const InitialStartCallDelay: u64 = prod_or_fast!(7 * 24 * 60 * 60 / 12, 10); | ||
| // 0 days | ||
| pub const InitialStartCallDelay: u64 = prod_or_fast!(0, 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since both values are equal, you can just use 0 here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make sense, thanks! I will rebase my other PR and put the change from comment there
Description
Set the default start call duration as 0, to avoid the long waiting.
Related Issue(s)
Type of Change
Breaking Change
If this PR introduces a breaking change, please provide a detailed description of the impact and the migration path for existing applications.
Checklist
./scripts/fix_rust.shto ensure my code is formatted and linted correctlyScreenshots (if applicable)
Please include any relevant screenshots or GIFs that demonstrate the changes made.
Additional Notes
Please provide any additional information or context that may be helpful for reviewers.