Skip to content
Closed
Changes from 2 commits
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
6 changes: 5 additions & 1 deletion cmd/ethrex/initializers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,11 @@ pub async fn init_l1(
opts: Options,
log_filter_handler: Option<reload::Handle<EnvFilter, Registry>>,
) -> eyre::Result<(PathBuf, CancellationToken, PeerTable, NodeRecord)> {
let datadir = &opts.datadir;
let datadir: &PathBuf = if opts.dev && cfg!(feature = "dev") {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of always, I would specify in memory by default. Also, I would set the default at the cli level, not here.

&Path::new("/tmp/memory").to_path_buf()
} else {
&opts.datadir
};
init_datadir(datadir);

let network = get_network(&opts);
Expand Down
Loading