adding some code that might be useful later

This commit is contained in:
moneroexamples 2018-06-22 14:15:51 +08:00
parent ad2defbab7
commit ea0a518af7
1 changed files with 6 additions and 1 deletions

View File

@ -2730,7 +2730,7 @@ public:
"Its prefix is: {:s}",
data_prefix);
cout << msg << endl;
cerr << msg << endl;
return string(msg);
}
@ -2739,6 +2739,11 @@ public:
crypto::hash tx_prefix_hash_from_blob;
cryptonote::transaction tx_from_blob;
// std::stringstream ss;
// ss << tx_data_blob;
// binary_archive<false> ba(ss);
// serialization::serialize(ba, tx_from_blob);
if (!cryptonote::parse_and_validate_tx_from_blob(tx_data_blob,
tx_from_blob,
tx_hash_from_blob,