mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-11-19 14:44:15 +01:00
MoneroUtils toPropertyTree(vector<T> || vector<shared_pr<T>>) with
template restriction (duck typing?)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user