checking if hash of tx reconstructed from json is correct added

master
moneroexamples 8 years ago
parent 6141f92311
commit 615c087efb

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

Loading…
Cancel
Save