MoneroUtils toPropertyTree(vector<T> || vector<shared_pr<T>>) with

template restriction (duck typing?)
This commit is contained in:
woodser
2019-06-07 13:28:57 -04:00
parent c17c3f9f1e
commit c4a0bfcb9c
4 changed files with 15 additions and 13 deletions
+2 -1
View File
@@ -24,7 +24,8 @@ namespace monero {
cout << "MoneroBlock::toPropertyTree(block)" << endl;
boost::property_tree::ptree node;
if (height != boost::none) node.put("height", *height); // TODO: finish this, add txs
//node.add_child("txs", toPropertyTree(txs)); // TODO: txs is vector<shared_ptr<MoneroTx>> so need to handle
cout << "We should be adding " << txs.size() << " txs" << endl;
node.add_child("txs", MoneroUtils::toPropertyTree(txs)); // TODO: txs is vector<shared_ptr<MoneroTx>> so need to handle
return node;
}