diff --git a/src/utils/MoneroUtils.cpp b/src/utils/MoneroUtils.cpp index df16743..db2ef29 100644 --- a/src/utils/MoneroUtils.cpp +++ b/src/utils/MoneroUtils.cpp @@ -150,6 +150,7 @@ boost::property_tree::ptree MoneroUtils::toPropertyTree(const MoneroBlock& block cout << "toPropertyTree(block)" << endl; boost::property_tree::ptree blockNode; if (block.height != boost::none) blockNode.put("height", *block.height); // TODO: finish this, add txs + //blockNode.add_child("txs", toPropertyTree(block.txs)); // TODO: block.txs is vector> so need to handle return blockNode; } diff --git a/src/utils/MoneroUtils.h b/src/utils/MoneroUtils.h index 6acd241..13bbbd3 100644 --- a/src/utils/MoneroUtils.h +++ b/src/utils/MoneroUtils.h @@ -84,6 +84,15 @@ namespace MoneroUtils return typeNodes; } +// template boost::property_tree::ptree toPropertyTree(const vector types) { +// cout << "toPropertyTree(types*)" << endl; +// boost::property_tree::ptree typeNodes; +// for (const auto& type : types) { +// typeNodes.push_back(std::make_pair("", toPropertyTree(type))); +// } +// return typeNodes; +// } + /** * Modified from core_rpc_server.cpp to return a string. *