fix: Windows wrong path size of DB
Some checks are pending
CI / ci (macos-12) (push) Waiting to run
CI / ci (ubuntu-latest) (push) Waiting to run
Lockbud / lockbud (push) Waiting to run
Rust / fmt (push) Waiting to run
Rust / test (macos-latest) (push) Waiting to run
Rust / test (ubuntu-latest) (push) Waiting to run
Rust / typo (push) Waiting to run
Rust / clippy (macos-latest) (push) Waiting to run
Rust / clippy (ubuntu-latest) (push) Waiting to run
Rust / check (macos-latest) (push) Waiting to run
Rust / check (ubuntu-latest) (push) Waiting to run
Rust / doc (macos-latest) (push) Waiting to run
Rust / doc (ubuntu-latest) (push) Waiting to run
Typo / typo (push) Waiting to run

This commit is contained in:
Cyrix126 2024-10-12 21:22:25 +02:00
parent 3d3ea1ff71
commit 044526abd3

View file

@ -419,9 +419,11 @@ impl PrivNodeApi {
// https://github.com/monero-project/monero/issues/9513
{
if let Ok(metadata) = std::fs::metadata(if !state.path_db.is_empty() {
state.path_db.clone()
let mut path_db = state.path_db.clone();
path_db.push_str("lmdb/data/mdb");
path_db
} else {
r#"C:\ProgramData\bitmonero\"#.to_string()
r#"C:\ProgramData\bitmonero\lmdb\data.mdb"#.to_string()
}) {
private.result.database_size = metadata.file_size();
}