Skip to content
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

[WIP] malus-collator: implement malicious collator submitting same collation to all backing groups #6924

Draft
wants to merge 19 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
fc24fab
feat(undying-collator): implement initial version of malicious collat…
sw10pa Dec 17, 2024
8c7372c
chore(undying-collator): remove tokio dependency
sw10pa Dec 18, 2024
d517be7
feat(malus-collator): add initial zombienet test
sw10pa Dec 18, 2024
46fca3f
Merge branch 'master' into sw10pa/malus-collator
sw10pa Dec 19, 2024
1ecb271
fix(malus-collator): set correct upward messages
sw10pa Jan 2, 2025
0c0d625
Merge branch 'master' into sw10pa/malus-collator
sw10pa Jan 2, 2025
e430a58
refactor(malus-collator): move malicious behavior logic from script t…
sw10pa Jan 2, 2025
b6d8483
fix(malus-collator): skip core index check when submitting collations
sw10pa Jan 7, 2025
2b1650b
test(malus-collator): add core assignment and update Zombienet test c…
sw10pa Jan 8, 2025
c1f4bba
Merge branch 'master' into sw10pa/malus-collator
sw10pa Jan 8, 2025
7fc1986
docs(prdoc): add prdoc for PR #6924
sw10pa Jan 8, 2025
9e40fe1
fix(malus-collator-zombienet-test): increase max_candidate_depth and …
sw10pa Jan 10, 2025
5f3a538
Merge branch 'master' into sw10pa/malus-collator
sw10pa Jan 23, 2025
2f8c912
Merge branch 'master' into sw10pa/malus-collator
sw10pa Jan 23, 2025
d055dc6
refactor(malus-collator): format files to fix CI pipelines
sw10pa Jan 23, 2025
d9caa3e
refactor(malus-collator): address feedback from PR comments
sw10pa Jan 23, 2025
e6c8272
refactor(malus-collator): address feedback from PR comments
sw10pa Jan 24, 2025
3f36308
Merge branch 'master' into sw10pa/malus-collator
sw10pa Jan 27, 2025
fa8f15c
feat(collation-generation): subscribe to block import notification
sw10pa Jan 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions polkadot/parachain/test-parachains/undying/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ workspace = true
codec = { features = ["derive"], workspace = true }
dlmalloc = { features = ["global"], workspace = true }
log = { workspace = true }
polkadot-primitives = { workspace = true, default-features = false }
polkadot-parachain-primitives = { features = ["wasm-api"], workspace = true }
tiny-keccak = { features = ["keccak"], workspace = true }

Expand All @@ -29,6 +30,7 @@ default = ["std"]
std = [
"codec/std",
"log/std",
"polkadot-primitives/std",
"polkadot-parachain-primitives/std",
"sp-io/std",
]
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ futures-timer = { workspace = true }
log = { workspace = true, default-features = true }

polkadot-cli = { workspace = true, default-features = true }
polkadot-erasure-coding = { workspace = true, default-features = true }
polkadot-node-primitives = { workspace = true, default-features = true }
polkadot-node-subsystem = { workspace = true, default-features = true }
polkadot-primitives = { workspace = true, default-features = true }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ pub struct RunCmd {
/// we compute per block.
#[arg(long, default_value_t = 1)]
pub pvf_complexity: u32,

/// If true, the collator will behave maliciously by submitting
/// the same collations to all assigned backing groups.
#[arg(long, default_value_t = false)]
pub malus: bool,
sw10pa marked this conversation as resolved.
Show resolved Hide resolved
}

#[allow(missing_docs)]
Expand Down
Loading
Loading