Notice the user when the --mint, --bpf-program, or --clone arguments are ignored
This commit is contained in:
committed by
mergify[bot]
parent
8a9b51952e
commit
59c19d9fbf
@ -354,6 +354,18 @@ fn main() {
|
||||
});
|
||||
}
|
||||
|
||||
if TestValidatorGenesis::ledger_exists(&ledger_path) {
|
||||
for (name, long) in &[
|
||||
("bpf_program", "--bpf-program"),
|
||||
("clone_account", "--clone"),
|
||||
("mint_address", "--mint"),
|
||||
] {
|
||||
if matches.is_present(name) {
|
||||
println!("{} argument ignored, ledger already exists", long);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
let mut genesis = TestValidatorGenesis::default();
|
||||
|
||||
admin_rpc_service::run(
|
||||
|
Reference in New Issue
Block a user