Skip to content

Commit

Permalink
Set the default Args appdir to None (kaspanet#432)
Browse files Browse the repository at this point in the history
With the change from kaspanet#429 the defaults are now used whenever
no value is passed to cli args.

appdir default value used to not matter, but now if it's set it makes
the datadir be inside the current directory
  • Loading branch information
coderofstuff authored and D-Stacks committed Jul 10, 2024
1 parent 179f1b7 commit 1bb7edb
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 2 deletions.
56 changes: 55 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion kaspad/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ pub struct Args {
impl Default for Args {
fn default() -> Self {
Self {
appdir: Some("datadir".into()),
appdir: None,
no_log_files: false,
rpclisten_borsh: None,
rpclisten_json: None,
Expand Down

0 comments on commit 1bb7edb

Please sign in to comment.