Skip to content

Era param for set_weights and commit_weights #2784

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

Open
wants to merge 11 commits into
base: staging
Choose a base branch
from

Conversation

zyzniewski-reef
Copy link
Contributor

@zyzniewski-reef zyzniewski-reef commented Apr 2, 2025

Increasing the period should also help with E2E tests in fast-blocks

@zyzniewski-reef zyzniewski-reef added the feature new feature added label Apr 2, 2025
@zyzniewski-reef zyzniewski-reef requested a review from a team April 2, 2025 09:11
@zyzniewski-reef zyzniewski-reef force-pushed the feat/zyzniewski/era_param branch 2 times, most recently from 5d506c3 to 55177b9 Compare April 2, 2025 09:15
@@ -3831,6 +3846,7 @@ async def _blocks_weight_limit() -> bool:
version_key=version_key,
wait_for_inclusion=wait_for_inclusion,
wait_for_finalization=wait_for_finalization,
era=era if era is not DEFAULT_SET_WEIGHTS_EXTRINSIC_ERA else None,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for backward compatibility: commit_reveal_v3_extrinsic has default era = None

@@ -3111,6 +3127,7 @@ def _blocks_weight_limit() -> bool:
version_key=version_key,
wait_for_inclusion=wait_for_inclusion,
wait_for_finalization=wait_for_finalization,
era=era if era is not DEFAULT_SET_WEIGHTS_EXTRINSIC_ERA else None,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for backward compatibility: commit_reveal_v3_extrinsic has default era = None

@zyzniewski-reef zyzniewski-reef force-pushed the feat/zyzniewski/era_param branch from 55177b9 to de2b4c9 Compare April 2, 2025 09:21
thewhaleking
thewhaleking previously approved these changes Apr 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature new feature added
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants