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

Method wipe

libraries/chain/db_management.cpp:99–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97} FC_CAPTURE_AND_RETHROW( (data_dir) ) }
98
99void database::wipe(const fc::path& data_dir, bool include_blocks)
100{
101 ilog("Wiping database", ("include_blocks", include_blocks));
102 close();
103 object_database::wipe(data_dir);
104 if( include_blocks )
105 fc::remove_all( data_dir / "database" );
106}
107
108void database::open(
109 const fc::path& data_dir,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected