try fix windows

This commit is contained in:
Boog900 2024-10-26 23:35:11 +01:00
parent 65223dc175
commit 2751831a75
No known key found for this signature in database
GPG key ID: 42AB1287CB0041C2
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,4 @@
r#"
# ____ _
# / ___| _ _ __ _ __ __ _| |_ ___
# | | | | | | '_ \| '__/ _` | __/ _ \
@ -73,3 +74,5 @@ max_txpool_size = 100_000_000
path = "{blockchain}"
## The database sync mode for the blockchain.
sync_mode = "Async"
"#

View file

@ -1,6 +1,7 @@
use std::{
io::Write,
path::{Path, PathBuf},
str::from_utf8,
};
use cuprate_helper::fs::{CUPRATE_BLOCKCHAIN_DIR, CUPRATE_CACHE_DIR, CUPRATE_TXPOOL_DIR};
@ -36,7 +37,7 @@ pub fn create_default_config_file(path: &Path) -> ! {
/// Generates the text of the default config file.
fn generate_config_text() -> String {
format!(
include_str!("Cuprate.toml"),
include!("Cuprate.toml"),
cache = CUPRATE_CACHE_DIR.to_string_lossy(),
txpool = CUPRATE_TXPOOL_DIR.to_string_lossy(),
blockchain = CUPRATE_BLOCKCHAIN_DIR.to_string_lossy()