(&self, flags: &RunFlags)
| 187 | #[arg( |
| 188 | long, |
| 189 | default_value_t = String::from("./example_genesis.toml") |
| 190 | )] |
| 191 | pub genesis_path: String, |
| 192 | /// Path to a checkpoint file |
| 193 | #[arg(long)] |
| 194 | pub checkpoint_path: Option<String>, |
| 195 | |
| 196 | /// If set, fall back to genesis when the checkpoint path doesn't exist instead of panicking |
| 197 | #[arg(long)] |
| 198 | pub checkpoint_or_default: bool, |
| 199 | |
| 200 | /// Path to a TOML file containing the independently trusted weak-subjectivity anchor |
| 201 | #[arg(long, requires = "checkpoint_path")] |
| 202 | pub weak_subjectivity_path: Option<String>, |
| 203 | |
| 204 | /// Import a checkpoint WITHOUT verifying it against a finalized-header chain. |
| 205 | /// |
| 206 | /// UNSAFE: the imported consensus state is trusted entirely from the supplied |
| 207 | /// checkpoint artifact. By default, checkpoint startup requires a checkpoint |
| 208 | /// directory containing finalized_headers/ together with |
| 209 | /// --weak-subjectivity-path. Set this flag to bypass that requirement (e.g. |
| 210 | /// to import a standalone checkpoint file). Only use it when the checkpoint |
| 211 | /// source is fully trusted. |
| 212 | #[arg(long, requires = "checkpoint_path")] |
| 213 | pub unsafe_skip_checkpoint_verification: bool, |
| 214 | |
| 215 | /// IP address for this node (optional, will use genesis if not provided) |
| 216 | #[arg(long)] |
| 217 | pub ip: Option<String>, |
| 218 | |
| 219 | /// Path to a TOML file containing bootstrapper nodes (pubkey and address) for syncing |
| 220 | #[arg(long)] |
| 221 | pub bootstrappers: Option<String>, |
| 222 | |
| 223 | /// Directory for critical event log files (daily rotation). |
| 224 | /// When set, events emitted with target "critical" are written to files in this directory. |
| 225 | #[arg(long)] |
| 226 | pub critical_log_dir: Option<String>, |
| 227 | |
| 228 | /// Observer mode: RPC-only node that follows the chain without proposing or voting on blocks. |
| 229 | /// The value is a derivation index that produces a distinct identity from the base node key. |
no test coverage detected