-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[5 / 5] Introduce approval-voting-parallel #4849
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 45 commits
Commits
Show all changes
73 commits
Select commit
Hold shift + click to select a range
8dbb088
Make approval-distribution logic runnable on a separate thread
alexggh 14727c5
Move crypto checks in the approval-distribution
alexggh 1942139
Make approval-voting runable on a worker thread
alexggh 55520b8
Introduce approval-voting-parallel
alexggh 7175957
Address review feedback
alexggh 469866f
Merge remote-tracking branch 'origin/alexaggh/approval-voting-paralle…
alexggh d9fdd51
Address review feedback
alexggh 135fe79
Merge remote-tracking branch 'origin/alexaggh/approval-voting-paralle…
alexggh 27bab6e
Merge remote-tracking branch 'origin/alexaggh/approval-voting-paralle…
alexggh 2752d6e
Fail early on oversized claims
alexggh 00d22ee
Add more unittests
alexggh 4f99f65
Merge remote-tracking branch 'origin/master' into alexaggh/approval-v…
alexggh f289995
Merge remote-tracking branch 'origin/alexaggh/approval-voting-paralle…
alexggh 57472ae
Merge remote-tracking branch 'origin/alexaggh/approval-voting-paralle…
alexggh 00dbcb0
Some refactoring to make the code a bit more testable
alexggh f42fbf6
Move gather of assignments on separate task
alexggh 57534a7
Some nits
alexggh d920095
Add metrics for channels to workers
alexggh e30f83d
subsystem-bench: Make it report per task cpu usage
alexggh 05c53cd
Make subsystem-bench run in both parallel and single thread mode
alexggh 493116f
Add some documentation
alexggh bb4ca09
Add subsystem unittests
alexggh 83d65f7
Add more unittests
alexggh 3e4821e
Add zombienet for running approval-voting-in parallel
alexggh ead49d2
Review feedback
alexggh c67d99d
Add checked indirect assignment
alexggh 23d5a28
Merge remote-tracking branch 'origin/alexaggh/approval-voting-paralle…
alexggh 638c4ad
Merge remote-tracking branch 'origin/alexaggh/approval-voting-paralle…
alexggh 247161f
Merge remote-tracking branch 'origin/master' into alexaggh/approval-v…
alexggh edd7898
Merge remote-tracking branch 'origin/alexaggh/approval-voting-paralle…
alexggh 50ac4cc
Merge remote-tracking branch 'origin/alexaggh/approval-voting-paralle…
alexggh 0b140cc
Change OurViewChange order
alexggh 0581468
Merge branch 'fix_signal_order' into alexaggh/approval-voting-paralle…
alexggh 08889e1
Merge remote-tracking branch 'origin/master' into alexaggh/approval-v…
alexggh d04d4cc
Merge branch 'alexaggh/approval-voting-parallel-3-5' into alexaggh/ap…
alexggh a3c4735
Merge branch 'alexaggh/approval-voting-parallel-2-5' into alexaggh/ap…
alexggh c6157b6
Update Cargo.lock
alexggh b0fb6d4
Merge remote-tracking branch 'origin/master' into alexaggh/approval-v…
alexggh 7539184
Remove crate dependency between approval-distribution and approval-vo…
alexggh 8da0be8
Merge branch 'alexaggh/approval-voting-parallel-3-5' into alexaggh/ap…
alexggh 377f4e1
Address review feedback
alexggh 6d7ed3a
Merge branch 'alexaggh/approval-voting-parallel-2-5' into alexaggh/ap…
alexggh 3b3299e
Make subsystem-bench happy
alexggh f5a2447
Merge remote-tracking branch 'origin/master' into alexaggh/approval-v…
alexggh 16652b3
Merge branch 'alexaggh/approval-voting-parallel-2-5' into alexaggh/ap…
alexggh 3fe4076
Address review feedback
alexggh df08769
Remove subsystem_enabled and subystem_disabled flags
alexggh fab18b1
Fix benchmark
alexggh a7d5f85
Enable it by default on all test networks except kusama and polkadot
alexggh 11cc977
Cosmetic updates
alexggh bb3887f
Reduce timeout
alexggh b817677
Cleanup Cargo.toml
alexggh 6521bb9
Add option to capacity override the workers channels
alexggh a2bfe6b
Add qed to expect.
alexggh 0f95717
Merge remote-tracking branch 'origin/master' into alexaggh/approval-v…
alexggh e4f8771
Fix some typos
alexggh f6c58b9
Fix cargo fmt
alexggh f356912
Add prdoc
alexggh e19d8dc
Add implementers guide documenation for the new subsystem
alexggh ae0a087
Fix gum reference
alexggh 2b6e5c6
Make cargo doc happy
alexggh 808e8d0
Merge remote-tracking branch 'origin/master' into alexaggh/approval-v…
alexggh cecb78d
Update Cargo.lock
alexggh 18facc1
Make taplo happy
alexggh 89ef3fa
Send GetApprovalSignatures on unbounded
alexggh 64be040
Fix failing unittest
alexggh 19816a7
Make umbrella check happy
alexggh ee31fb0
Merge branch 'master' into alexaggh/approval-voting-parallel-5-5
alexggh 2486214
Make tests less verbose
alexggh da175b9
Merge branch 'master' into alexaggh/approval-voting-parallel-5-5
alexggh dca783a
Update pr_4849.prdoc
alexggh d88c8cd
Update pr_4849.prdoc
alexggh a818d96
Merge branch 'master' into alexaggh/approval-voting-parallel-5-5
alexggh 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
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
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,67 @@ | ||
| [package] | ||
| name = "polkadot-node-core-approval-voting-parallel" | ||
| version = "7.0.0" | ||
| authors.workspace = true | ||
| edition.workspace = true | ||
| license.workspace = true | ||
| description = "Approval Voting Subsystem running approval work in parallel" | ||
|
|
||
| [lints] | ||
| workspace = true | ||
|
|
||
| [dependencies] | ||
| futures = "0.3.30" | ||
| futures-timer = "3.0.2" | ||
| codec = { package = "parity-scale-codec", version = "3.6.12", default-features = false, features = ["bit-vec", "derive"] } | ||
| gum = { package = "tracing-gum", path = "../../gum" } | ||
| bitvec = { version = "1.0.0", default-features = false, features = ["alloc"] } | ||
| schnellru = "0.2.1" | ||
| merlin = "3.0" | ||
| schnorrkel = "0.11.4" | ||
| kvdb = "0.13.0" | ||
| derive_more = "0.99.17" | ||
| thiserror = { workspace = true } | ||
| itertools = "0.11" | ||
| async-trait = { workspace = true } | ||
|
|
||
| polkadot-node-core-approval-voting = { workspace = true, default-features = true } | ||
| polkadot-approval-distribution = { workspace = true, default-features = true } | ||
|
|
||
|
|
||
| polkadot-node-subsystem = { workspace = true, default-features = true } | ||
| polkadot-node-subsystem-util = { workspace = true, default-features = true } | ||
| polkadot-overseer = { workspace = true, default-features = true } | ||
| polkadot-primitives = { workspace = true, default-features = true } | ||
| polkadot-node-primitives = { workspace = true, default-features = true } | ||
| polkadot-node-jaeger = { workspace = true, default-features = true } | ||
|
|
||
| sc-keystore = { workspace = true, default-features = false } | ||
| sp-consensus = { workspace = true, default-features = false } | ||
| sp-consensus-slots = { workspace = true, default-features = false } | ||
| sp-application-crypto = { workspace = true, default-features = false, features = ["full_crypto"] } | ||
| sp-runtime = { workspace = true, default-features = false } | ||
| polkadot-node-network-protocol = { workspace = true, default-features = true } | ||
| polkadot-node-metrics = { workspace = true, default-features = true} | ||
|
|
||
| rand = "0.8.5" | ||
|
|
||
| # rand_core should match schnorrkel | ||
| rand_core = "0.6.2" | ||
| rand_chacha = { version = "0.3.1" } | ||
|
|
||
| [dev-dependencies] | ||
| async-trait = "0.1.79" | ||
| parking_lot = "0.12.1" | ||
| sp-keyring = { workspace = true, default-features = true } | ||
| sp-keystore = {workspace = true, default-features = true} | ||
| sp-core = { workspace = true, default-features = true} | ||
| sp-consensus-babe = { workspace = true, default-features = true } | ||
| polkadot-node-subsystem-test-helpers = { workspace = true, default-features = true} | ||
| assert_matches = "1.4.0" | ||
| kvdb-memorydb = "0.13.0" | ||
| polkadot-primitives-test-helpers = { workspace = true, default-features = true } | ||
| log = { workspace = true, default-features = true } | ||
| env_logger = "0.11" | ||
|
|
||
| polkadot-subsystem-bench = { workspace = true, default-features = true} | ||
|
|
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.
Uh oh!
There was an error while loading. Please reload this page.