-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Update Scheduler to have a configurable block provider #7434 #7441
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
Merged
Merged
Changes from 2 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
212712d
initial commit
9314582
effort to add block number provider
fbb1eb7
fixing imports in the wrong pallet
8ea5046
fixing imports
a2c3c97
fixing import of blocknumberprovider under the correct pallet
88cf158
importing blocknumberprovider in the pallet
1ea6c26
adding blocknumber to mock
b29cf54
Use pallet's BlockNumberFor
ggwpez 0670883
Merge branch 'master' into seemant/scheduler-bnp
seemantaggarwal ce52df4
cargo fmt + prdoc added
16585b9
cargo fmt
df2b959
Merge branch 'master' into seemant/scheduler-bnp
seemantaggarwal 279ed58
adding testing
55b0acd
trial and error
d20b051
reverting 55b0acd158d1db765dd76598da716cdd57e62ec0
39a6e6c
trial and error more
0feaccc
reverting 39a6e6c24a1a2a799769cbf850385e774c02e044
62a4592
using block number in benchmarking
2fdf53d
cargo fmt
ae9e068
updating prdoc
c96dd35
adding a suggested block number value as a document
03fc0da
cargo fmt
9041d6c
Merge branch 'master' into seemant/scheduler-bnp
seemantaggarwal d7a8db1
addressing comment
b745976
improving the rust doc, addressing comment
b887564
improving the pr doc
2ba273a
fixing the soon to be deprecated max_value()
4c54432
updating tests
39ded63
fixup
ggwpez e09547a
docs
ggwpez 17b7aec
Merge branch 'master' into seemant/scheduler-bnp
ggwpez 441f5d3
prdoc
ggwpez 21683a4
patch
ggwpez 4069c9e
more docs
ggwpez 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 hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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.
We will need a doc comment that explains this type, and warns that it must not be too much out of sync with the local block number. More precisely between every block the increment of this number should be reasonably small otherwise performance degrades will degrade a lot as it reads one storage per block number.
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.
Thanks, I will add it towards the end of the pr for sure, I will look into it. At this moment, I am not entirely sure of the value that needs to be advised, i will get more insights into it, thanks for the reminder :)
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.
We can suggest people to use the system block number or the relay chain block number (this second option, only if they expect their parachain to execute very regularly).