| 66 | } |
| 67 | |
| 68 | BaseIndex::DB::DB(const fs::path& path, size_t n_cache_size, bool f_memory, bool f_wipe, bool f_obfuscate) : |
| 69 | CDBWrapper{DBParams{ |
| 70 | .path = path, |
| 71 | .cache_bytes = n_cache_size, |
| 72 | .memory_only = f_memory, |
| 73 | .wipe_data = f_wipe, |
| 74 | .obfuscate = f_obfuscate, |
| 75 | .options = [] { DBOptions options; node::ReadDatabaseArgs(gArgs, options); return options; }()}} |
| 76 | {} |
| 77 | |
| 78 | CBlockLocator BaseIndex::DB::ReadBestBlock() const |
| 79 | { |
nothing calls this directly
no test coverage detected