-
Notifications
You must be signed in to change notification settings - Fork 272
enable multi block per slot #2320
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
base: devnet-ready
Are you sure you want to change the base?
Conversation
|
How exactly is this change connected to the original problem? This is a non-trivial consensus setting. There are potential side effects, i.e, more potential forks and reorgs. |
|
What is the connection between a third-party "forge" app and "multiple blocks per slot" settings in Aura consensus? How exactly does it solve the problem? Probably, we miss a less intrusive way to achieve the same outcome. |
|
Additionally, do you use |
|
Via debugging, find out the root cause now. I also tried hardhat, which use the number_or_hash as None to query gas_estimation. Then frontier use the latest_block_id, and use different api, as runtime_api without initialize_pending_block. |
Description
When use the forge to deploy contract, I noticed there is a panic in runtime. the source code in pallet aura.
the error message is "Slot must increase". source code as follows:
error message
pallet aura function
The client get the request for raw transaction, then try to initialize the runtime.
The new_slot is equal current_slot in on_initialize in aura pallet.
If we AllowMultipleBlocksPerSlot in runtime configuration, then everything is fine.
Contract deployment with forge is OK.
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.