Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions cli/src/commands/start.rs
Original file line number Diff line number Diff line change
Expand Up @@ -719,10 +719,21 @@ impl Start {
},
};

// Users may have unintentionally set a custom path for the ledger, but not for the node data.
// For validators, we make this an errors, so important files like the proposal cache are stored at the location
Comment thread
vicsn marked this conversation as resolved.
// exepcted by the node operator.
if self.node_data.is_some() && !matches!(storage_mode, StorageMode::Custom(_)) {
warn!("Custom path set for `--storage`, but not for `--node-data`. The latter will use the default path.");
if node_type == NodeType::Validator {
bail!("Custom path set for `--storage`, but not for `--node-data`.")
Comment thread
ljedrz marked this conversation as resolved.
Outdated
} else {
warn!("Custom path set for `--storage`, but not for `--node-data`. The latter will use the default path.");
}
} else if matches!(storage_mode, StorageMode::Custom(_)) && self.node_data.is_none() {
warn!("Custom path set for `--storage`, but `--node-data` is not set. The latter will use the default path.");
if node_type == NodeType::Validator {
bail!("Custom path set for `--storage`, but `--node-data` is not set.");
} else {
warn!("Custom path set for `--storage`, but `--node-data` is not set. The latter will use the default path.");
}
}

// Parse the node data directory.
Expand Down