Creates a test database with a 100 MB map size.
(path: &std::path::Path)
| 392 | |
| 393 | /// Creates a test database with a 100 MB map size. |
| 394 | fn create_test_database(path: &std::path::Path) -> Result<DatabaseEnv> { |
| 395 | std::fs::create_dir_all(path).wrap_err("Failed to create client database directory")?; |
| 396 | let args = DatabaseArguments::new(ClientVersion::default()) |
| 397 | .with_geometry_max_size(Some(100 * 1024 * 1024)); |
| 398 | init_db(path, args).wrap_err("Failed to create test database") |
| 399 | } |
| 400 | |
| 401 | /// Builds the client node's built-in extensions, excluding [`FlashblocksExtension`]. |
| 402 | /// |