Skip to content

Commit

Permalink
validator: Move skip_poh_verify into the deprecated list (#30885)
Browse files Browse the repository at this point in the history
Follow-up for

  commit 809041b
  Author: Illia Bobyr <illia.bobyr@solana.com>
  Date:   Wed Mar 22 11:03:30 2023 -0700

      poh_verify => run_verification: Rename to be more accurate (#30811)

      `poh_verify` actually disables transaction signature, tick count and
      built in program argument verifications as well.  It is somewhat
      confusing to call it `poh_verify`.
  • Loading branch information
ilya-bobyr authored Mar 27, 2023
1 parent d4b30ad commit 301a944
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
18 changes: 9 additions & 9 deletions validator/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -612,15 +612,6 @@ pub fn app<'a>(version: &'a str, default_args: &'a DefaultArgs) -> App<'a, 'a> {
.help("Controls how often RocksDB read/write performance sample is collected. \
Reads/writes perf samples are collected in 1 / ROCKS_PERF_SAMPLE_INTERVAL sampling rate."),
)
.arg(
Arg::with_name("skip_poh_verify")
.long("skip-poh-verify")
.takes_value(false)
.help(
"Deprecated, please use --skip-verification.\n\
Skip ledger verification at validator bootup."
),
)
.arg(
Arg::with_name("skip_verification")
.long("skip-verification")
Expand Down Expand Up @@ -1700,6 +1691,14 @@ fn get_deprecated_arguments() -> Vec<Arg<'static, 'static>> {
.hidden(hidden_unless_forced())
.takes_value(false)
.help("Disable manual compaction of the ledger database (this is ignored)."),
Arg::with_name("skip_poh_verify")
.long("skip-poh-verify")
.hidden(hidden_unless_forced())
.takes_value(false)
.help(
"Please use --skip-verification.\n\
Skip ledger verification at validator bootup."
),
Arg::with_name("rocksdb_compaction_interval")
.long("rocksdb-compaction-interval-slots")
.hidden(hidden_unless_forced())
Expand Down Expand Up @@ -1940,6 +1939,7 @@ lazy_static! {
"Vote account sanity checks are no longer performed by default.",
),
("no_rocksdb_compaction", ""),
("skip_poh_verify", "Please use --skip-verification"),
("rocksdb_compaction_interval", ""),
("rocksdb_max_compaction_jitter", ""),
];
Expand Down
4 changes: 0 additions & 4 deletions validator/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1191,10 +1191,6 @@ pub fn main() {
}
let full_api = matches.is_present("full_rpc_api");

if matches.is_present("skip_poh_verify") {
eprintln!("--skip-poh-verify is deprecated. Replace with --skip-verification.");
}

let mut validator_config = ValidatorConfig {
require_tower: matches.is_present("require_tower"),
tower_storage,
Expand Down

0 comments on commit 301a944

Please sign in to comment.