-
Notifications
You must be signed in to change notification settings - Fork 248
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(runtime update): wait until upgrade on chain #1321
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
f5b3338
fix(runtime update): wait until upgrade on chain
niklasad1 9f247d6
Merge branch 'master' into na-fix-1319
niklasad1 8a33592
Merge branch 'master' into na-fix-1319
niklasad1 d26ca2a
Merge branch 'master' into na-fix-1319
niklasad1 e6db124
Merge branch 'master' into na-fix-1319
niklasad1 682f207
Merge remote-tracking branch 'origin/master' into na-fix-1319
niklasad1 b02a8af
address grumbles
niklasad1 75ba195
Merge remote-tracking branch 'origin/na-fix-1319' into na-fix-1319
niklasad1 2793751
Update subxt/src/client/online_client.rs
niklasad1 a294cb3
Update subxt/src/client/online_client.rs
niklasad1 9388915
fix nits and debug logs
niklasad1 3c410cc
Merge remote-tracking branch 'origin/na-fix-1319' into na-fix-1319
niklasad1 3c4a34a
remove debug logs
niklasad1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we fetch the metadata from the backend here? I guess it is not part of the "LastRuntimeUpgrade" storage item for which we already got the scale_val below, that contains the spec_version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep exactly; the storage item tells us that the runtime version has updated in this block (but doesn't contain the metadata too), and so once we see that a block is updated, we fetch the metadata at that block to use to update Subxt