defined tx/WalletToPropertyTree() to re-serialize given tx request

This commit is contained in:
woodser
2019-06-05 11:27:04 -04:00
parent 2ac65b3e64
commit 036f13697a
2 changed files with 37 additions and 0 deletions
+4
View File
@@ -66,6 +66,10 @@ namespace MoneroUtils
boost::property_tree::ptree toPropertyTree(const MoneroSubaddress& subaddress);
boost::property_tree::ptree txToPropertyTree(const MoneroTx& tx);
boost::property_tree::ptree txWalletToPropertyTree(const MoneroTxWallet& tx);
// // TODO: template implementation here, could move to MoneroUtils.hpp per https://stackoverflow.com/questions/3040480/c-template-function-compiles-in-header-but-not-implementation
template <class T> boost::property_tree::ptree toPropertyTree(const vector<T> types) {
cout << "toPropertyTree(types)" << endl;