mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-12-01 23:07:05 +00:00
malus: add new variant SupportDisabled (#2835)
This variant pretends that nobody is disabled onchain.
This commit is contained in:
1 parent
5b9e69d37d
commit
b0a8746aec
4 files changed
+116
No files matched your search
@@ -32,6 +32,8 @@ use variants::*;
|
||||
enum NemesisVariant {
|
||||
/// Suggest a candidate with an invalid proof of validity.
|
||||
SuggestGarbageCandidate(SuggestGarbageCandidateOptions),
|
||||
/// Support disabled validators in backing and statement distribution.
|
||||
SupportDisabled(SupportDisabledOptions),
|
||||
/// Back a candidate with a specifically crafted proof of validity.
|
||||
BackGarbageCandidate(BackGarbageCandidateOptions),
|
||||
/// Delayed disputing of ancestors that are perfectly fine.
|
||||
@@ -68,6 +70,11 @@ impl MalusCli {
|
||||
finality_delay,
|
||||
)?
|
||||
},
|
||||
NemesisVariant::SupportDisabled(opts) => {
|
||||
let SupportDisabledOptions { cli } = opts;
|
||||
|
||||
polkadot_cli::run_node(cli, SupportDisabled, finality_delay)?
|
||||
},
|
||||
NemesisVariant::DisputeAncestor(opts) => {
|
||||
let DisputeAncestorOptions {
|
||||
fake_validation,
|
||||
|
||||
Reference in new issue
Block a user