pub fn open_raw<T: AsRef<Path>>(
        global_state_dir: T,
        engine_config: EngineConfig,
        post_state_hash: Digest,
    ) -> Self {
        Self::initialize_logging();
        let page_size = *OS_PAGE_SIZE;
        Self::create_global_state_dir(&global_state_dir);
        let environment = Arc::new(
            LmdbEnvironment::new(
                &global_state_dir,
                page_size * DEFAULT_LMDB_PAGES,
                DEFAULT_MAX_READERS,
                true,
            )
            .expect("should create LmdbEnvironment"),
        );
        let trie_store =
            Arc::new(LmdbTrieStore::open(&environment, None).expect("should open LmdbTrieStore"));

        let global_state =
            LmdbGlobalState::empty(environment, trie_store).expect("should create LmdbGlobalState");
        let engine_state = EngineState::new(global_state, engine_config);
        WasmTestBuilder {
            engine_state: Rc::new(engine_state),
            exec_results: Vec::new(),
            upgrade_results: Vec::new(),
            genesis_hash: None,
            post_state_hash: Some(post_state_hash),
            transforms: Vec::new(),
            genesis_account: None,
            genesis_transforms: None,
            mint_contract_hash: None,
            handle_payment_contract_hash: None,
            standard_payment_hash: None,
            auction_contract_hash: None,
        }
    }
/// Creates a new instance of builder using the supplied configurations, opening wrapped LMDBs
/// (e.g. in the Trie and Data stores) rather than creating them.
/// Differs from `open` in that it doesn't append `GLOBAL_STATE_DIR` to the supplied path.
Creates a new instance of builder using the supplied configurations, opening wrapped LMDBs
rather than creating them.
Differs from `open` in that it doesn't append `GLOBAL_STATE_DIR` to the supplied path.
Creates a new instance of builder using the supplied configurations opening wrapped LMDBs rather than creating them . Differs from ` open ` in that it doesn ' t append ` GLOBAL_STATE_DIR ` to the supplied path .
pub fn open_raw<T: AsRef<Path>>(
        global_state_dir: T,
        engine_config: EngineConfig,
        post_state_hash: Digest,
    ) -> Self {
        Self::initialize_logging();
        let page_size = *OS_PAGE_SIZE;
        Self::create_global_state_dir(&global_state_dir);
        let environment = Arc::new(
            LmdbEnvironment::new(
                &global_state_dir,
                page_size * DEFAULT_LMDB_PAGES,
                DEFAULT_MAX_READERS,
                true,
            )
            .expect("should create LmdbEnvironment"),
        );
        let trie_store =
            Arc::new(LmdbTrieStore::open(&environment, None).expect("should open LmdbTrieStore"));
        let global_state =
            LmdbGlobalState::empty(environment, trie_store).expect("should create LmdbGlobalState");
        let engine_state = EngineState::new(global_state, engine_config);
        WasmTestBuilder {
            engine_state: Rc::new(engine_state),
            exec_results: Vec::new(),
            upgrade_results: Vec::new(),
            genesis_hash: None,
            post_state_hash: Some(post_state_hash),
            transforms: Vec::new(),
            genesis_account: None,
            genesis_transforms: None,
            mint_contract_hash: None,
            handle_payment_contract_hash: None,
            standard_payment_hash: None,
            auction_contract_hash: None,
        }
    }
pub fn open_raw < T : AsRef < Path > > ( global_state_dir : T , engine_config : EngineConfig , post_state_hash : Digest , ) -> Self { Self :: initialize_logging ( ) ; let page_size = * OS_PAGE_SIZE ; Self :: create_global_state_dir ( & global_state_dir ) ; let environment = Arc :: new ( LmdbEnvironment :: new ( & global_state_dir , page_size * DEFAULT_LMDB_PAGES , DEFAULT_MAX_READERS , true , ) . expect ( " " ) , ) ; let trie_store = Arc :: new ( LmdbTrieStore :: open ( & environment , None ) . expect ( " " ) ) ; let global_state = LmdbGlobalState :: empty ( environment , trie_store ) . expect ( " " ) ; let engine_state = EngineState :: new ( global_state , engine_config ) ; WasmTestBuilder { engine_state : Rc :: new ( engine_state ) , exec_results : Vec :: new ( ) , upgrade_results : Vec :: new ( ) , genesis_hash : None , post_state_hash : Some ( post_state_hash ) , transforms : Vec :: new ( ) , genesis_account : None , genesis_transforms : None , mint_contract_hash : None , handle_payment_contract_hash : None , standard_payment_hash : None , auction_contract_hash : None , } }
Creates a new instance of builder using the supplied configurations, opening wrapped LMDBs
(e.g.
Creates a new instance of builder using the supplied configurations opening wrapped LMDBs ( e . g .
global_state_dir
T
engine_config
EngineConfig
post_state_hash
Digest
global_state_dir
T
engine_config
EngineConfig
post_state_hash
Digest