| 97 | } FC_CAPTURE_AND_RETHROW( (data_dir) ) } |
| 98 | |
| 99 | void 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 | |
| 108 | void database::open( |
| 109 | const fc::path& data_dir, |
nothing calls this directly
no outgoing calls
no test coverage detected