diff options
author | Thomas Winget <tewinget@gmail.com> | 2015-03-13 21:39:27 -0400 |
---|---|---|
committer | Thomas Winget <tewinget@gmail.com> | 2015-03-13 21:39:27 -0400 |
commit | eee3ee70730bc3bf7874e5f22139a55dac3a2cdd (patch) | |
tree | e36c6344d008e2112d3593ff318ca6733f3b6e50 /src/blockchain_db/lmdb/db_lmdb.h | |
parent | Fixed includes in BlockchainDB unit tests (diff) | |
download | monero-eee3ee70730bc3bf7874e5f22139a55dac3a2cdd.tar.xz |
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.
Diffstat (limited to '')
-rw-r--r-- | src/blockchain_db/lmdb/db_lmdb.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/blockchain_db/lmdb/db_lmdb.h b/src/blockchain_db/lmdb/db_lmdb.h index f6582fce4..1a684548e 100644 --- a/src/blockchain_db/lmdb/db_lmdb.h +++ b/src/blockchain_db/lmdb/db_lmdb.h @@ -126,6 +126,8 @@ public: virtual std::vector<std::string> get_filenames() const; + virtual std::string get_db_name() const; + virtual bool lock(); virtual void unlock(); |