adding some code that might be useful later

master
moneroexamples 6 years ago
parent ad2defbab7
commit ea0a518af7

@ -2730,7 +2730,7 @@ public:
"Its prefix is: {:s}", "Its prefix is: {:s}",
data_prefix); data_prefix);
cout << msg << endl; cerr << msg << endl;
return string(msg); return string(msg);
} }
@ -2739,6 +2739,11 @@ public:
crypto::hash tx_prefix_hash_from_blob; crypto::hash tx_prefix_hash_from_blob;
cryptonote::transaction tx_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, if (!cryptonote::parse_and_validate_tx_from_blob(tx_data_blob,
tx_from_blob, tx_from_blob,
tx_hash_from_blob, tx_hash_from_blob,

Loading…
Cancel
Save