diff options
author | luigi1111 <luigi1111w@gmail.com> | 2021-03-20 01:33:10 -0400 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2021-03-20 01:33:10 -0400 |
commit | 8d7c1135b8458db5a03e180e93f48a31b940b2f0 (patch) | |
tree | d30730a354559b16044c5cce4c5a779cf73b5b11 /src/debug_utilities | |
parent | Merge pull request #7399 (diff) | |
parent | New add_aux_pow RPC to support merge mining (diff) | |
download | monero-8d7c1135b8458db5a03e180e93f48a31b940b2f0.tar.xz |
Merge pull request #6810
19b2283 New add_aux_pow RPC to support merge mining (moneromooo-monero)
Diffstat (limited to 'src/debug_utilities')
-rw-r--r-- | src/debug_utilities/cn_deserialize.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/debug_utilities/cn_deserialize.cpp b/src/debug_utilities/cn_deserialize.cpp index dd4701e4f..c039b93c5 100644 --- a/src/debug_utilities/cn_deserialize.cpp +++ b/src/debug_utilities/cn_deserialize.cpp @@ -133,6 +133,18 @@ int main(int argc, char* argv[]) { std::cout << "Parsed block:" << std::endl; std::cout << cryptonote::obj_to_json_str(block) << std::endl; + bool parsed = cryptonote::parse_tx_extra(block.miner_tx.extra, fields); + if (!parsed) + std::cout << "Failed to parse tx_extra" << std::endl; + + if (!fields.empty()) + { + print_extra_fields(fields); + } + else + { + std::cout << "No fields were found in tx_extra" << std::endl; + } } else if (cryptonote::parse_and_validate_tx_from_blob(blob, tx) || cryptonote::parse_and_validate_tx_base_from_blob(blob, tx)) { |