MCPcopy Create free account
hub / github.com/base/base / create_test_database

Method create_test_database

etc/systems/src/l2/in_process_client.rs:394–399  ·  view source on GitHub ↗

Creates a test database with a 100 MB map size.

(path: &std::path::Path)

Source from the content-addressed store, hash-verified

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 ///

Callers

nothing calls this directly

Calls 1

newFunction · 0.50

Tested by

no test coverage detected