evgrd: add datastore and hostlist to evgrd.toml

This commit is contained in:
darkfi
2024-09-06 11:42:01 +02:00
parent 757f466ca3
commit 720b3deb54
2 changed files with 5 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
[net]
datastore = "~/.local/darkfi/evgrd"
hostlist = "~/.local/darkfi/evgrd/p2p_hostlist.tsv"

View File

@@ -99,12 +99,12 @@ async fn realmain(args: Args, ex: Arc<Executor<'static>>) -> 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?;