From 720b3deb54e0120da33cc38d55bf279634d4d511 Mon Sep 17 00:00:00 2001 From: darkfi Date: Fri, 6 Sep 2024 11:42:01 +0200 Subject: [PATCH] evgrd: add datastore and hostlist to evgrd.toml --- bin/evgrd/evgrd.toml | 4 ++++ bin/evgrd/src/main.rs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/evgrd/evgrd.toml b/bin/evgrd/evgrd.toml index e69de29bb..028f3a069 100644 --- a/bin/evgrd/evgrd.toml +++ b/bin/evgrd/evgrd.toml @@ -0,0 +1,4 @@ +[net] +datastore = "~/.local/darkfi/evgrd" +hostlist = "~/.local/darkfi/evgrd/p2p_hostlist.tsv" + diff --git a/bin/evgrd/src/main.rs b/bin/evgrd/src/main.rs index 2108f05d6..aeffe3b0b 100644 --- a/bin/evgrd/src/main.rs +++ b/bin/evgrd/src/main.rs @@ -99,12 +99,12 @@ async fn realmain(args: Args, ex: Arc>) -> Result<()> { let datastore = expand_path(&args.datastore)?; fs::create_dir_all(&datastore).await?; - /* let replay_datastore = expand_path(&args.replay_datastore)?; let replay_mode = args.replay_mode; info!("Instantiating event DAG"); let sled_db = sled::open(datastore)?; + /* let mut p2p_settings: darkfi::net::Settings = args.net.into(); p2p_settings.app_version = semver::Version::parse(env!("CARGO_PKG_VERSION")).unwrap(); let p2p = P2p::new(p2p_settings, ex.clone()).await?;