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

Fix xcmp return weight #400

Merged
merged 2 commits into from
Aug 3, 2023
Merged

Fix xcmp return weight #400

merged 2 commits into from
Aug 3, 2023

Conversation

v9n
Copy link
Member

@v9n v9n commented Aug 3, 2023

the old xcmp migration task return weight from migration_upgrade_xcmp_task. this weight definition is being removed from our benchmark.rs in lastcode, so upon re-generate benchmark, we will lost it.

Plus the way substrate mention is count the amount of ops we do to storage. when we loop over the task, we read/insert them back. there is one extra time where we access the whole Storage itself.

@v9n v9n requested review from imstar15 and chrisli30 August 3, 2023 17:38
Copy link
Member

@chrisli30 chrisli30 left a comment

Choose a reason for hiding this comment

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

Yes, this makes sense to me. 🆗

v9n added 2 commits August 3, 2023 11:07
format code

use u64

add missing trace
@v9n v9n merged commit 4cbecd2 into master Aug 3, 2023
3 checks passed
@v9n v9n deleted the fix-xcmp-return-weight branch August 3, 2023 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants