define MoneroKeyImageImportResult and importKeyImages()

This commit is contained in:
woodser
2019-07-01 12:05:20 -04:00
parent ebd74ddf7d
commit 75fcc8244f
4 changed files with 35 additions and 9 deletions
+11 -1
View File
@@ -389,7 +389,7 @@ namespace monero {
return node;
}
// -------------------------- MONERO INTEGRATED ADDRESS -----------------------------
// ---------------------- MONERO INTEGRATED ADDRESS -------------------------
boost::property_tree::ptree MoneroIntegratedAddress::toPropertyTree() const {
boost::property_tree::ptree node;
@@ -398,4 +398,14 @@ namespace monero {
node.put("integratedAddress", integratedAddress);
return node;
}
// -------------------- MONERO KEY IMAGE IMPORT RESULT ----------------------
boost::property_tree::ptree MoneroKeyImageImportResult::toPropertyTree() const {
boost::property_tree::ptree node;
if (height != boost::none) node.put("height", *height);
if (spentAmount != boost::none) node.put("spentAmount", *spentAmount);
if (unspentAmount != boost::none) node.put("unspentAmount", *unspentAmount);
return node;
}
}