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_converter/blockchain_converter.cpp | |
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 'src/blockchain_converter/blockchain_converter.cpp')
-rw-r--r-- | src/blockchain_converter/blockchain_converter.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/blockchain_converter/blockchain_converter.cpp b/src/blockchain_converter/blockchain_converter.cpp index aae569e58..8ac9b81bb 100644 --- a/src/blockchain_converter/blockchain_converter.cpp +++ b/src/blockchain_converter/blockchain_converter.cpp @@ -71,7 +71,11 @@ int main(int argc, char* argv[]) blockchain = new BlockchainLMDB(); - blockchain->open(default_data_path.string()); + boost::filesystem::path db_path(default_data_path); + + db_path /= blockchain->get_db_name(); + + blockchain->open(db_path.string()); for (uint64_t height, i = 0; i < (height = c.m_storage.get_current_blockchain_height()); ++i) { |