mirror of
https://github.com/monero-project/monero.git
synced 2024-11-18 00:37:43 +00:00
cn_deserialize: support pruned transactions
This commit is contained in:
parent
91c7d68b2d
commit
2af1ec3af7
1 changed files with 5 additions and 2 deletions
|
@ -168,8 +168,11 @@ int main(int argc, char* argv[])
|
||||||
std::cout << "Parsed block:" << std::endl;
|
std::cout << "Parsed block:" << std::endl;
|
||||||
std::cout << cryptonote::obj_to_json_str(block) << std::endl;
|
std::cout << cryptonote::obj_to_json_str(block) << std::endl;
|
||||||
}
|
}
|
||||||
else if (cryptonote::parse_and_validate_tx_from_blob(blob, tx))
|
else if (cryptonote::parse_and_validate_tx_from_blob(blob, tx) || cryptonote::parse_and_validate_tx_base_from_blob(blob, tx))
|
||||||
{
|
{
|
||||||
|
if (tx.pruned)
|
||||||
|
std::cout << "Parsed pruned transaction:" << std::endl;
|
||||||
|
else
|
||||||
std::cout << "Parsed transaction:" << std::endl;
|
std::cout << "Parsed transaction:" << std::endl;
|
||||||
std::cout << cryptonote::obj_to_json_str(tx) << std::endl;
|
std::cout << cryptonote::obj_to_json_str(tx) << std::endl;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue