adding timestamp to key images

master
moneroexamples 8 years ago
parent 566201c4bc
commit 1cd5426d94

@ -2026,12 +2026,10 @@ namespace xmreg {
{"key_imgs" , mstch::array{}} {"key_imgs" , mstch::array{}}
}; };
unique_ptr<xmreg::MyLMDB> mylmdb; unique_ptr<xmreg::MyLMDB> mylmdb;
if (bf::is_directory(lmdb2_path)) if (bf::is_directory(lmdb2_path))
{ {
mylmdb = make_unique<xmreg::MyLMDB>(lmdb2_path); mylmdb = make_unique<xmreg::MyLMDB>(lmdb2_path);
} }
else else
@ -2040,8 +2038,6 @@ namespace xmreg {
} }
size_t no_key_images = (decoded_raw_data.size() - header_lenght) / record_lenght; size_t no_key_images = (decoded_raw_data.size() - header_lenght) / record_lenght;
//vector<pair<crypto::key_image, crypto::signature>> signed_key_images; //vector<pair<crypto::key_image, crypto::signature>> signed_key_images;
@ -2049,7 +2045,6 @@ namespace xmreg {
mstch::array& key_imgs_ctx = boost::get<mstch::array>(context["key_imgs"]); mstch::array& key_imgs_ctx = boost::get<mstch::array>(context["key_imgs"]);
for (size_t n = 0; n < no_key_images; ++n) for (size_t n = 0; n < no_key_images; ++n)
{ {
const char* record_ptr = decoded_raw_data.data() + header_lenght + n * record_lenght; const char* record_ptr = decoded_raw_data.data() + header_lenght + n * record_lenght;

Loading…
Cancel
Save