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.
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
pallet-migrations Initial Implementation #527
pallet-migrations Initial Implementation #527
Changes from 67 commits
9ecdc74
e4f15ce
ca3620e
cdc042a
c4204b4
0cc885d
95308a1
93b96ce
275531c
d5abf1f
d25ffc1
0c9ce74
23837f8
85ecaa1
f22ce8d
d8d2c3c
bfd24f6
9404fbe
edee830
d13a471
986433e
92047ee
b885fc5
aefb302
f9f8a2a
bc2e538
19a9912
1f70d01
6e581f3
2ea1e3b
4afc532
85ed484
e377caf
95d6b95
d5da28a
2c0bfe5
67bede2
f924112
5022dcc
8a925ac
a2177dd
01727f8
8ed861f
0785e48
8c444e7
2e12fd2
9a9bfd4
2744571
e1f49c6
0684874
c19a4a1
7d57a4e
3f87f79
595e865
8f6e9e5
a4e2acc
41e9d0b
0a3ae7e
26ef7db
e6543e6
01bc09f
d2e5759
38ee3a4
30033ee
dfb6f42
f691977
dc42819
f31807a
607e0ee
3e9c26b
91f92f7
c0e6167
d9e561b
3722eaf
a585e3c
bdafb76
9d27292
e346883
3cb8bb4
99ca061
62eb821
cf735f9
fd0a165
3bcfce5
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
I agree with an earlier suggestion to change this trait bound to
Migration
and allow it to accept multiple migrations by implementingMigration
for tuple instead of passing them in as a vec.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.
Agree. We can do it in a followup though.
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.
yeah,
max_block
does not account for the rest ofon_initialize
AFAICTThere 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.
Should we panic in this case? If you panic the block is immediately invalid. But that may be better than getting one that we suspect is corrupted finalized in the relay chain.
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.
I've generally made the assumption that if we fail during a runtime upgrade and can't produce a block that we'll just end up doing the same thing when we try to produce another block.
One reason to allow the block is that we are better off if we at least continue producing blocks (e.g. we could vote to modify storage, do another runtime upgrade, etc.)
I've definitely gone back and forth on this, though. It's a situation where we can't do anything good...