mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
fixes for the newest monero c++ api
This commit is contained in:
parent
4c446c5c3c
commit
723c52bab9
1 changed files with 16 additions and 7 deletions
23
src/page.h
23
src/page.h
|
@ -1078,8 +1078,19 @@ namespace xmreg {
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
out_amount_indices = core_storage->get_db()
|
|
||||||
.get_tx_amount_output_indices(txd.hash);
|
uint64_t tx_index;
|
||||||
|
|
||||||
|
if (core_storage->get_db().tx_exists(txd.hash, tx_index))
|
||||||
|
{
|
||||||
|
out_amount_indices = core_storage->get_db()
|
||||||
|
.get_tx_amount_output_indices(tx_index);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
cerr << "get_tx_outputs_gindexs failed to find transaction with id = " << txd.hash;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
catch(const exception& e)
|
catch(const exception& e)
|
||||||
{
|
{
|
||||||
|
@ -1091,17 +1102,15 @@ namespace xmreg {
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
out_global_indices = core_storage->get_db()
|
core_storage->get_tx_outputs_gindexs(txd.hash,
|
||||||
.get_tx_output_indices(txd.hash);
|
out_global_indices);
|
||||||
|
|
||||||
}
|
}
|
||||||
catch(const exception& e)
|
catch(const exception& e)
|
||||||
{
|
{
|
||||||
cerr << e.what() << endl;
|
cerr << e.what() << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
uint64_t output_idx {0};
|
uint64_t output_idx {0};
|
||||||
|
|
||||||
mstch::array outputs;
|
mstch::array outputs;
|
||||||
|
|
Loading…
Reference in a new issue