diff --git a/neveko-core/src/db.rs b/neveko-core/src/db.rs index 1567f35..b81ca51 100644 --- a/neveko-core/src/db.rs +++ b/neveko-core/src/db.rs @@ -40,6 +40,8 @@ impl Interface { env_str = "lmdb"; }; let env = EnvBuilder::new() + // increase map size for writing the multisig txset + .map_size(crate::LMDB_MAPSIZE) .open(format!("{}/{}", file_path, env_str), 0o777) .expect(&format!("could not open LMDB at {}", file_path)); let handle = env.get_default_db(DbFlags::empty()).unwrap(); diff --git a/neveko-core/src/lib.rs b/neveko-core/src/lib.rs index 8fa988c..7aedb6e 100644 --- a/neveko-core/src/lib.rs +++ b/neveko-core/src/lib.rs @@ -65,4 +65,6 @@ pub const MONERO_RELEASE_HASH: &str = pub const I2P_ZERO_RELEASE_VERSION: &str = "v1.21"; pub const I2P_ZERO_RELEASH_HASH: &str = "14f34052ad6abb0c24b048816b0ea86b696ae350dd139dd1e90a67ca88e1d07a"; + +pub const LMDB_MAPSIZE: u64 = 1 * 1024 * 1024 * 1024; // DO NOT EDIT BELOW THIS LINE