mirror of
https://github.com/monero-project/monero.git
synced 2025-08-23 05:15:05 -04:00
BlockchainDB implementations have names now
In order to make things more general, BlockchainDB now has get_db_name() which should return a string with the "name" of that type of db. This "name" will be the subfolder name that holds that db type's files within the monero folder. Small bugfix: blockchain_converter was not correctly appending this in the prior hard-coded-string implementation of the subfolder data directory concept.
This commit is contained in:
parent
5d2a2b7e69
commit
eee3ee7073
5 changed files with 20 additions and 3 deletions
|
@ -775,6 +775,13 @@ std::vector<std::string> BlockchainLMDB::get_filenames() const
|
|||
return filenames;
|
||||
}
|
||||
|
||||
std::string BlockchainLMDB::get_db_name() const
|
||||
{
|
||||
LOG_PRINT_L3("BlockchainLMDB::" << __func__);
|
||||
|
||||
return std::string("lmdb");
|
||||
}
|
||||
|
||||
// TODO: this?
|
||||
bool BlockchainLMDB::lock()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue