From 9dadea8df2b846f37f04f4339c18260ddf92f337 Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Sat, 28 May 2016 13:12:00 +0800 Subject: [PATCH] Extra cout added regarding custom lmdb database --- README.md | 13 ++++++++----- src/page.h | 3 +++ 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 1730f57..582caed 100644 --- a/README.md +++ b/README.md @@ -205,15 +205,18 @@ Most unique search abilities of the Onion Explorer are achieved through using a [custom lmdb database](https://github.com/moneroexamples/lmdbcpp-monero.git) constructed based on the Monero blockchain. The reason for the custom database is that Monero's own lmdb database has limited search abilities. For example, its not possible to search for a tx having a - given key image, except performing an exhaustive search on the blockchain. + given key image, except by performing an exhaustive search on the blockchain which is very time consuming. -Instruction how to compile the lmdbcpp-monero are provided here: +Instruction how to compile the `lmdbcpp-monero` are provided here: - https://github.com/moneroexamples/lmdbcpp-monero.git -The custom database can be quit large, 12GB now. So its optional off course. -But without it, some searching abilities wont be possible, e.g., searching -for key images, output and tx public keys, encrypted payments id. +The custom database is rather big, 12GB now, and it must be running alongside Monero deamon + so that it keeps updating itself with new information from new blocks as they are added + to the blockchain. + +For these reasons, its use is optional. However, without it, some searches wont be possible, +e.g., searching for key images, output and tx public keys, encrypted payments id. ##### Compile and run the explorer Once the Monero is compiled and setup, the explorer can be downloaded and compiled diff --git a/src/page.h b/src/page.h index 095fa87..63cdde2 100644 --- a/src/page.h +++ b/src/page.h @@ -1458,6 +1458,9 @@ namespace xmreg { throw std::runtime_error(lmdb2_path + " does not exist"); } + cout << "Custom lmdb database seem to exist at: " << lmdb2_path << endl; + cout << "So lets try to search there for what we are after." << endl; + mylmdb = make_unique(lmdb2_path);