From 615c087efb3e65a94ff653f2f66509d3707e5cce Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Sat, 3 Dec 2016 12:17:33 +0800 Subject: [PATCH] checking if hash of tx reconstructed from json is correct added --- src/page.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/page.h b/src/page.h index eed1d71..7fcad0b 100644 --- a/src/page.h +++ b/src/page.h @@ -4048,6 +4048,14 @@ private: continue; } + if (_tx_info.id_hash != pod_to_hex(get_transaction_hash(tx))) + { + cerr << "Hash of reconstructed tx from json does not match " + "what we should get!" + << endl; + continue; + } + if (tx_hash == mem_tx_hash) { found_txs.push_back(make_pair(_tx_info, tx));