This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
implement provisioner #1473
Merged
Merged
implement provisioner #1473
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
306eac1
sketch out provisioner basics
coriolinus 811a952
Merge remote-tracking branch 'origin/master' into prgn-provisioner
coriolinus 1020de3
handle provisionable data
coriolinus 4f3ceca
stub out select_inherent_data
coriolinus d8d7cbb
split runtime APIs into sub-chapters to improve linkability
coriolinus 4533d3c
explain SignedAvailabilityBitfield semantics
coriolinus 775b4e4
add internal link to further documentation
coriolinus 05c51a7
some more work figuring out how the provisioner can do its thing
coriolinus f171d16
Merge remote-tracking branch 'origin/master' into prgn-provisioner
coriolinus f99312f
fix broken link
coriolinus 9ded53e
don't import enum variants where it's one layer deep
coriolinus bbc9284
make request_availability_cores a free fn in util
coriolinus 2e227bb
document more precisely what should happen on block production
coriolinus 0f303d3
finish first-draft implementation of provisioner
coriolinus 226d5cb
start working on the full and proper backed candidate selection rule
coriolinus 4f05dcd
Merge remote-tracking branch 'origin/master' into prgn-provisioner
coriolinus 850fe62
Pass number of block under construction via RequestInherentData
coriolinus 6da5846
Revert "Pass number of block under construction via RequestInherentData"
coriolinus 5b1035c
wip: get the block under production from the Chain API
coriolinus d2a35ae
add ChainApiMessage to AllMessages
coriolinus 9955cdc
don't break the run loop if a provisionable data channel closes
coriolinus 6f79690
clone only those backed candidates which are coherent
coriolinus 01eda32
Merge remote-tracking branch 'origin/master' into prgn-provisioner
coriolinus 03d01ca
propagate chain_api subsystem through various locations
coriolinus 9e36cae
add delegated_subsystem! macro to ease delegating subsystems
coriolinus 470adf8
fix delegated_subsystem
coriolinus faec27c
add provisioning subsystem; reduce public interface of provisioner
coriolinus 1bacf06
deny missing docs in provisioner
coriolinus fb42634
refactor core selection per code review suggestion
coriolinus f6e4a5a
Merge remote-tracking branch 'origin/master' into prgn-provisioner
coriolinus f345e9a
fix bad merge double-declaration
coriolinus 7136331
update guide with (hopefully) complete provisioner candidate selectio…
coriolinus c68a02a
clarify candidate selection algorithm
coriolinus 2d55f39
Revert "clarify candidate selection algorithm"
coriolinus ba3efc6
clarify candidate selection algorithm
coriolinus 0e97e01
update provisioner to implement candidate selection per the guide
coriolinus 48a951c
add test that no more than one bitfield is selected per validator
coriolinus 429af8f
add test that each selected bitfield corresponds to an occupied core
coriolinus c7e5782
add test that more set bits win conflicts
coriolinus 89194d8
add macro for specializing runtime requests; specailize all runtime r…
coriolinus 54580a0
add tests harness for select_candidates tests
coriolinus 933396c
add first real select_candidates test, fix test_harness
coriolinus 983c772
add mock overseer and test that success is possible
coriolinus 31682ff
add test that the candidate selection algorithm picks the right ones
coriolinus f2b5af3
make candidate selection test somewhat more stringent
coriolinus 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| [package] | ||
| name = "polkadot-node-core-provisioner" | ||
| version = "0.1.0" | ||
| authors = ["Parity Technologies <admin@parity.io>"] | ||
| edition = "2018" | ||
|
|
||
| [dependencies] | ||
| bitvec = { version = "0.17.4", default-features = false, features = ["alloc"] } | ||
| derive_more = "0.99.9" | ||
| futures = "0.3.5" | ||
| log = "0.4.8" | ||
| polkadot-primitives = { path = "../../../primitives" } | ||
| polkadot-node-subsystem = { path = "../../subsystem" } | ||
|
|
||
| [dev-dependencies] | ||
| lazy_static = "1.4" | ||
| sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" } | ||
| tokio = "0.2" |
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.
was this version revert intentional? probably bad merge
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, that was an accident.