checking if hash of tx reconstructed from json is correct added

This commit is contained in:
moneroexamples 2016-12-03 12:17:33 +08:00
parent 6141f92311
commit 615c087efb
1 changed files with 8 additions and 0 deletions

View File

@ -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));