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
Update Treasury to Support Relay Chain Block Number Provider #3970
Update Treasury to Support Relay Chain Block Number Provider #3970
Changes from 33 commits
d7678db
a8b649d
757c7f4
0f74c0c
2b1bd39
b0cc89d
f01f0e6
904dd96
1add90c
7ee9a4b
a45e506
6a0becc
ad5d05a
64ceef4
e3a06a8
e61e0f2
d0027d1
ea02217
874db2a
e155ee6
53a1a2e
b1f3407
be1d7d0
aceda46
e1f25b3
cc80522
b383500
bf6b8d2
ee8ce2b
93418c5
bac943d
a4f2732
554eac1
2ef0ce3
fa68d86
b90bf4a
471cb2b
b0d7d52
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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 imagine most of the logic breaks when a parachain migrates from
System
to theRelay
BlockNumberProvider
...Not sure what can be done about it without re-writing the pallet to use timepoints. Maybe we can use this as first step and advise to still use
System
.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.
a transition from system to relay will always require a migration due to the nature of the code.
you think we should be transitioning to use timestamps for all of these various pallet logic? I have always suggested against this, but perhaps due to the nature of Polkadot, it might be the right thing to do.
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 think in the long term we need some kind of block-number-abstraction like #3268, but its a bit stale now as low-prio. That is not necessarily timestamps, but could be implemented with Relay blocknumber or something else.