MCPcopy Create free account
hub / github.com/cryptonomex/graphene / open_database

Method open_database

tests/common/database_fixture.cpp:291–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289}
290
291void database_fixture::open_database()
292{
293 if( !data_dir ) {
294 data_dir = fc::temp_directory( graphene::utilities::temp_directory_path() );
295 db.open(data_dir->path(), [this]{return genesis_state;});
296 }
297}
298
299signed_block database_fixture::generate_block(uint32_t skip, const fc::ecc::private_key& key, int miss_blocks)
300{

Callers

nothing calls this directly

Calls 2

temp_directory_pathFunction · 0.85
openMethod · 0.45

Tested by

no test coverage detected