This commit is contained in:
woodser
2019-06-05 11:48:35 -04:00
parent 74a465ec14
commit 72089314d9
+1 -1
View File
@@ -151,7 +151,7 @@ boost::property_tree::ptree MoneroUtils::toPropertyTree(const MoneroSubaddress&
boost::property_tree::ptree MoneroUtils::txToPropertyTree(const MoneroTx& tx) {
cout << "txToPropertyTree(tx)" << endl;
boost::property_tree::ptree txNode;
if (tx.block != nullptr) txNode.put("id", *tx.id);
if (tx.block != nullptr) throw runtime_error("not implemented");
if (tx.id != nullptr) txNode.put("id", *tx.id);
if (tx.version != nullptr) txNode.put("version", *tx.version);
if (tx.isCoinbase != nullptr) txNode.put("isCoinbase", *tx.isCoinbase);