mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-10-19 16:18:40 +02:00
define MoneroKeyImageImportResult and importKeyImages()
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user