mirror of
https://github.com/creating2morrow/neveko.git
synced 2024-12-22 19:49:24 +00:00
increase lmdb mapsize for writing txset
This commit is contained in:
parent
4677ee1f8f
commit
1131eaa541
2 changed files with 4 additions and 0 deletions
|
@ -40,6 +40,8 @@ impl Interface {
|
||||||
env_str = "lmdb";
|
env_str = "lmdb";
|
||||||
};
|
};
|
||||||
let env = EnvBuilder::new()
|
let env = EnvBuilder::new()
|
||||||
|
// increase map size for writing the multisig txset
|
||||||
|
.map_size(crate::LMDB_MAPSIZE)
|
||||||
.open(format!("{}/{}", file_path, env_str), 0o777)
|
.open(format!("{}/{}", file_path, env_str), 0o777)
|
||||||
.expect(&format!("could not open LMDB at {}", file_path));
|
.expect(&format!("could not open LMDB at {}", file_path));
|
||||||
let handle = env.get_default_db(DbFlags::empty()).unwrap();
|
let handle = env.get_default_db(DbFlags::empty()).unwrap();
|
||||||
|
|
|
@ -65,4 +65,6 @@ pub const MONERO_RELEASE_HASH: &str =
|
||||||
pub const I2P_ZERO_RELEASE_VERSION: &str = "v1.21";
|
pub const I2P_ZERO_RELEASE_VERSION: &str = "v1.21";
|
||||||
pub const I2P_ZERO_RELEASH_HASH: &str =
|
pub const I2P_ZERO_RELEASH_HASH: &str =
|
||||||
"14f34052ad6abb0c24b048816b0ea86b696ae350dd139dd1e90a67ca88e1d07a";
|
"14f34052ad6abb0c24b048816b0ea86b696ae350dd139dd1e90a67ca88e1d07a";
|
||||||
|
|
||||||
|
pub const LMDB_MAPSIZE: u64 = 1 * 1024 * 1024 * 1024;
|
||||||
// DO NOT EDIT BELOW THIS LINE
|
// DO NOT EDIT BELOW THIS LINE
|
||||||
|
|
Loading…
Reference in a new issue