Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Allow specifying immediate finalize for manual-seal #12106

Conversation

cmichi
Copy link
Contributor

@cmichi cmichi commented Aug 25, 2022

The manual-seal engine seals blocks automatically for each issued transaction, but doesn't finalize them until an RPC finalize_block call is explicitly issued.

We need automatic finalization for substrate-contracts-node, where we use manual-seal for testing and CI purposes. Specifically I need this automatic finalization for introducing E2E testing for ink! smart contract developers (use-ink/ink#1234).

To avoid breaking changes to the API this PR introduces a fn run_instant_seal_and_finalize, analog to fn run_instant_seal right above it.

@cmichi cmichi added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. labels Aug 25, 2022
@cmichi cmichi requested review from athei and agryaznov August 25, 2022 06:16
@cmichi cmichi force-pushed the cmichi-add-immediate-finalize-option-to-manual-seal branch from d1a581a to be258fe Compare August 25, 2022 06:17
@cmichi
Copy link
Contributor Author

cmichi commented Aug 25, 2022

@bkchr Thanks for the approval, CI is failing due to some clippy stuff unrelated to this PR: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/1773294. Could you force merge? Or how to continue?

@bkchr
Copy link
Member

bkchr commented Aug 25, 2022

You just push a Fix.

@stale
Copy link

stale bot commented Sep 24, 2022

Hey, is anyone still working on this? Due to the inactivity this issue has been automatically marked as stale. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the A5-stale Pull request did not receive any updates in a long time. No review needed at this stage. Close it. label Sep 24, 2022
@athei athei added D2-notlive 💤 PR contains changes in a runtime directory that is not deployed to a chain that requires an audit. B3-apinoteworthy and removed A5-stale Pull request did not receive any updates in a long time. No review needed at this stage. Close it. B0-silent Changes should not be mentioned in any release notes labels Sep 25, 2022
@athei
Copy link
Member

athei commented Sep 25, 2022

bot merge

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. C1-low PR touches the given topic and has a low impact on builders. D2-notlive 💤 PR contains changes in a runtime directory that is not deployed to a chain that requires an audit.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants