mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-08 03:07:22 +00:00
malus: add new variant SupportDisabled (#2835)
This variant pretends that nobody is disabled onchain.
This commit is contained in:
@@ -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