basic output for searching from lmdb2 added

This commit is contained in:
moneroexamples 2016-04-29 06:54:53 +08:00
parent a2eeee7eb7
commit daf4f73ae9

View file

@ -955,7 +955,7 @@ namespace xmreg {
tx_hashes = mylmdb.search(search_text, "output_public_keys");
all_possible_tx_hashes.push_back(make_pair("output_public_keys", tx_hashes));
result_html = show_search_results(all_possible_tx_hashes);
result_html = show_search_results(search_text, all_possible_tx_hashes);
// if (tx_hashes.size() == 1)
// {
@ -975,16 +975,17 @@ namespace xmreg {
}
string
show_search_results(
show_search_results(const string& search_text,
const vector<pair<string, vector<string>>>& all_possible_tx_hashes)
{
// initalise page tempate map with basic info about blockchain
mstch::map context {
{"something" , "something"},
{"search_text: " , search_text},
};
string out_tmp;
string out_tmp {"Searching for: " + search_text + string("<br/>")};
for (const pair<string, vector<string>>& found_txs: all_possible_tx_hashes)
{