mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
basic output for searching from lmdb2 added
This commit is contained in:
parent
a2eeee7eb7
commit
daf4f73ae9
1 changed files with 5 additions and 4 deletions
|
@ -955,7 +955,7 @@ namespace xmreg {
|
||||||
tx_hashes = mylmdb.search(search_text, "output_public_keys");
|
tx_hashes = mylmdb.search(search_text, "output_public_keys");
|
||||||
all_possible_tx_hashes.push_back(make_pair("output_public_keys", tx_hashes));
|
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)
|
// if (tx_hashes.size() == 1)
|
||||||
// {
|
// {
|
||||||
|
@ -975,16 +975,17 @@ namespace xmreg {
|
||||||
}
|
}
|
||||||
|
|
||||||
string
|
string
|
||||||
show_search_results(
|
show_search_results(const string& search_text,
|
||||||
const vector<pair<string, vector<string>>>& all_possible_tx_hashes)
|
const vector<pair<string, vector<string>>>& all_possible_tx_hashes)
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
// initalise page tempate map with basic info about blockchain
|
// initalise page tempate map with basic info about blockchain
|
||||||
mstch::map context {
|
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)
|
for (const pair<string, vector<string>>& found_txs: all_possible_tx_hashes)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue