Skip to content
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

Double DEFAULT_PROOF_SIZE to support staking unbond via xcm transactor #2320

Merged
merged 1 commit into from
May 30, 2023

Conversation

librelois
Copy link
Collaborator

What does it do?

Lido does a call that is staking.unbond() which requires a proofSize of 82,498 bytes.

Our current implementation of the XCM Transactor precompile uses the DEFAULT_PROOF_SIZE which is 128Kb divided by two. This makes the call fail on the relay chain with MaxWeightInvalid.

The long terme fix should be to add a proofSize parameter in the XCM Transactor precompile, but for backward compatibility we should also provide enough proof size by default, that the goal of this PR.

What important points reviewers should know?

Is there something left for follow-up PRs?

What alternative implementations were considered?

Are there relevant PRs or issues in other repositories (Substrate, Polkadot, Frontier, Cumulus)?

What value does it bring to the blockchain users?

@librelois librelois added B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes D5-nicetohaveaudit⚠️ PR contains trivial changes to logic that should be properly reviewed. not-breaking Does not need to be mentioned in breaking changes labels May 30, 2023
@librelois librelois mentioned this pull request May 30, 2023
24 tasks
@github-actions
Copy link
Contributor

Coverage generated "Tue May 30 11:12:29 UTC 2023":
https://s3.amazonaws.com/moonbeam-coverage/pulls/2320/html/index.html

Master coverage: 70.87%
Pull coverage: 70.87%

@librelois librelois marked this pull request as ready for review May 30, 2023 12:10
@librelois librelois merged commit 2c80ce1 into master May 30, 2023
@librelois librelois deleted the elois-double-default-proof-size branch May 30, 2023 12:10
@notlesh notlesh added D1-audited👍 PR contains changes to fund-managing logic that has been properly reviewed and externally audited and removed D5-nicetohaveaudit⚠️ PR contains trivial changes to logic that should be properly reviewed. labels Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes D1-audited👍 PR contains changes to fund-managing logic that has been properly reviewed and externally audited not-breaking Does not need to be mentioned in breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants