-
Notifications
You must be signed in to change notification settings - Fork 273
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. |
Thanks for the details! It seems from the code that |
I just found out the PR which introduced the error. will share info in team. |
|
If this is a quirk needed for evm to work correctly I think it is fine. The nodes still enforce correct parent hashes, so I don't think will impact reorgs. |
Did you have a chance to review why our update changed the default behaviour? @liamaharon |
|
I spent quite some time trying to understand @shamil-gadelshin , but cannot find anything clear yet. My best guess at this time is it related to the frontier version bump we performed in that pr. I will continue investigating. It may be worth reaching out to the maintainers of frontier about this if we have not already @open-junius , maybe they have encountered this before. |
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.