aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/api/wallet2_api.h
diff options
context:
space:
mode:
authordsc <xmrdsc@protonmail.com>2019-05-10 17:45:44 +0200
committerselsta <selsta@sent.at>2019-05-10 19:24:45 +0200
commit4c666141e3ee68868ccea7dd34d5c1875378cf5a (patch)
tree81b99a7a85a6e0a007de01c1ca616e48386a9be4 /src/wallet/api/wallet2_api.h
parentMerge pull request #5497 (diff)
downloadmonero-4c666141e3ee68868ccea7dd34d5c1875378cf5a.tar.xz
expose set/get walletcache attribute functionality in wallet api
Diffstat (limited to '')
-rw-r--r--src/wallet/api/wallet2_api.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/wallet/api/wallet2_api.h b/src/wallet/api/wallet2_api.h
index 0af3b1867..f2e99be21 100644
--- a/src/wallet/api/wallet2_api.h
+++ b/src/wallet/api/wallet2_api.h
@@ -891,6 +891,19 @@ struct Wallet
virtual void setDefaultMixin(uint32_t arg) = 0;
/*!
+ * \brief setCacheAttribute - attach an arbitrary string to a wallet cache attribute
+ * \param key - the key
+ * \param val - the value
+ * \return true if successful, false otherwise
+ */
+ virtual bool setCacheAttribute(const std::string &key, const std::string &val) = 0;
+ /*!
+ * \brief getCacheAttribute - return an arbitrary string attached to a wallet cache attribute
+ * \param key - the key
+ * \return the attached string, or empty string if there is none
+ */
+ virtual std::string getCacheAttribute(const std::string &key) const = 0;
+ /*!
* \brief setUserNote - attach an arbitrary string note to a txid
* \param txid - the transaction id to attach the note to
* \param note - the note