mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-08 22:28:12 -05:00
misc: use ~/.local/share/darkfi for app storage
This commit is contained in:
@@ -76,11 +76,11 @@ struct Args {
|
||||
/// JSON-RPC server listen address
|
||||
json_rpc_listen: Url,
|
||||
|
||||
#[structopt(short, long, default_value = "~/.local/darkfi/evgrd_db")]
|
||||
#[structopt(short, long, default_value = "~/.local/share/darkfi/evgrd_db")]
|
||||
/// Datastore (DB) path
|
||||
datastore: String,
|
||||
|
||||
#[structopt(short, long, default_value = "~/.local/darkfi/replayed_evgrd_db")]
|
||||
#[structopt(short, long, default_value = "~/.local/share/darkfi/replayed_evgrd_db")]
|
||||
/// Replay logs (DB) path
|
||||
replay_datastore: String,
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[net]
|
||||
datastore = "~/.local/darkfi/evgrd"
|
||||
hostlist = "~/.local/darkfi/evgrd/p2p_hostlist.tsv"
|
||||
datastore = "~/.local/share/darkfi/evgrd"
|
||||
hostlist = "~/.local/share/darkfi/evgrd/p2p_hostlist.tsv"
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ pub struct Privmsg {
|
||||
async fn amain() -> Result<()> {
|
||||
info!("Instantiating event DAG");
|
||||
let ex = std::sync::Arc::new(smol::Executor::new());
|
||||
let datastore = expand_path("~/.local/darkfi/evgrd-test-client")?;
|
||||
let datastore = expand_path("~/.local/share/darkfi/evgrd-test-client")?;
|
||||
fs::create_dir_all(&datastore).await?;
|
||||
let sled_db = sled::open(datastore)?;
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
rpc_listen = "tcp://127.0.0.1:14567"
|
||||
|
||||
# Path to daemon database
|
||||
db_path = "~/.local/darkfi/blockchain-explorer/daemon.db"
|
||||
db_path = "~/.local/share/darkfi/blockchain-explorer/daemon.db"
|
||||
|
||||
# Password for the daemon database
|
||||
db_pass = "changeme"
|
||||
|
||||
@@ -74,7 +74,7 @@ struct Args {
|
||||
/// JSON-RPC listen URL
|
||||
rpc_listen: Url,
|
||||
|
||||
#[structopt(long, default_value = "~/.local/darkfi/blockchain-explorer/daemon.db")]
|
||||
#[structopt(long, default_value = "~/.local/share/darkfi/blockchain-explorer/daemon.db")]
|
||||
/// Path to daemon database
|
||||
db_path: String,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user