(&self, flags: &RunFlags)
| 187 | |
| 188 | /// Import a checkpoint WITHOUT verifying it against a finalized-header chain. |
| 189 | /// |
| 190 | /// UNSAFE: the imported consensus state is trusted entirely from the supplied |
| 191 | /// checkpoint artifact. By default, checkpoint startup requires a checkpoint |
| 192 | /// directory containing finalized_headers/ together with |
| 193 | /// --weak-subjectivity-epoch and --weak-subjectivity-header-digest. Set this |
| 194 | /// flag to bypass that requirement (e.g. to import a standalone checkpoint |
| 195 | /// file). Only use it when the checkpoint source is fully trusted. |
| 196 | #[arg(long, requires = "checkpoint_path")] |
| 197 | pub unsafe_skip_checkpoint_verification: bool, |
| 198 | |
| 199 | /// IP address for this node (optional, will use genesis if not provided) |
| 200 | #[arg(long)] |
| 201 | pub ip: Option<String>, |
| 202 | |
| 203 | /// Path to a TOML file containing bootstrapper nodes (pubkey and address) for syncing |
| 204 | #[arg(long)] |
| 205 | pub bootstrappers: Option<String>, |
| 206 | |
| 207 | /// Directory for critical event log files (daily rotation). |
| 208 | /// When set, events emitted with target "critical" are written to files in this directory. |
| 209 | #[arg(long)] |
| 210 | pub critical_log_dir: Option<String>, |
| 211 | |
| 212 | /// Observer mode: RPC-only node that follows the chain without proposing or voting on blocks. |
| 213 | /// The value is a derivation index that produces a distinct identity from the base node key. |
| 214 | #[arg(long)] |
| 215 | pub observer: Option<u32>, |
| 216 | |
| 217 | /// Hard cap on unique deferred notarized blocks while the execution layer is SYNCING. |
| 218 | #[arg(long, default_value_t = FINALIZER_PENDING_NOTARIZED_MAX)] |
| 219 | pub finalizer_pending_notarized_max: usize, |
| 220 | } |
| 221 | |
| 222 | impl Command { |
| 223 | pub fn exec(&self) { |
| 224 | match self { |
| 225 | Command::Run { flags } => self.run_node(flags), |
| 226 | |
| 227 | Command::Keys(cmd) => cmd.exec(), |
| 228 | } |
| 229 | } |
no test coverage detected