fix: show_my_outputs does not depend on custom lmdb now

master
moneroexamples 8 years ago
parent 2f5b0fe6b6
commit 7b3c840231

@ -1335,13 +1335,6 @@ public:
bool show_key_images {false}; bool show_key_images {false};
unique_ptr<xmreg::MyLMDB> mylmdb;
if (bf::is_directory(lmdb2_path))
{
mylmdb = make_unique<xmreg::MyLMDB>(lmdb2_path);
}
mstch::array inputs; mstch::array inputs;
vector<txin_to_key> input_key_imgs = xmreg::get_key_images(tx); vector<txin_to_key> input_key_imgs = xmreg::get_key_images(tx);
@ -1351,12 +1344,6 @@ public:
for (const txin_to_key& in_key: input_key_imgs) for (const txin_to_key& in_key: input_key_imgs)
{ {
if (!mylmdb)
{
show_key_images = false;
break;
}
// get absolute offsets of mixins // get absolute offsets of mixins
std::vector<uint64_t> absolute_offsets std::vector<uint64_t> absolute_offsets
= cryptonote::relative_output_offsets_to_absolute( = cryptonote::relative_output_offsets_to_absolute(

Loading…
Cancel
Save