From 19b228393fdc0899104934538edfb0cfd665cdf0 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Thu, 3 Sep 2020 16:22:19 +0000 Subject: New add_aux_pow RPC to support merge mining --- src/debug_utilities/cn_deserialize.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/debug_utilities') 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)) { -- cgit v1.2.3