diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-07-19 11:31:23 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-08-25 18:39:45 +0000 |
commit | 2af1ec3af7acd1dfd887cebeccbdaa8fd08360ed (patch) | |
tree | 7d5f9d3824e3606dbaa4c387a57238e6e0f94584 | |
parent | Merge pull request #4223 (diff) | |
download | monero-2af1ec3af7acd1dfd887cebeccbdaa8fd08360ed.tar.xz |
cn_deserialize: support pruned transactions
-rw-r--r-- | src/debug_utilities/cn_deserialize.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/debug_utilities/cn_deserialize.cpp b/src/debug_utilities/cn_deserialize.cpp index 6c09b0f18..af33510be 100644 --- a/src/debug_utilities/cn_deserialize.cpp +++ b/src/debug_utilities/cn_deserialize.cpp @@ -168,9 +168,12 @@ int main(int argc, char* argv[]) std::cout << "Parsed 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)) { - std::cout << "Parsed transaction:" << std::endl; + if (tx.pruned) + std::cout << "Parsed pruned transaction:" << std::endl; + else + std::cout << "Parsed transaction:" << std::endl; std::cout << cryptonote::obj_to_json_str(tx) << std::endl; bool parsed = cryptonote::parse_tx_extra(tx.extra, fields); |