diff options
author | dsc <xmrdsc@protonmail.com> | 2019-05-10 17:45:44 +0200 |
---|---|---|
committer | selsta <selsta@sent.at> | 2019-05-10 19:24:45 +0200 |
commit | 4c666141e3ee68868ccea7dd34d5c1875378cf5a (patch) | |
tree | 81b99a7a85a6e0a007de01c1ca616e48386a9be4 /src/wallet/api/wallet.cpp | |
parent | Merge pull request #5497 (diff) | |
download | monero-4c666141e3ee68868ccea7dd34d5c1875378cf5a.tar.xz |
expose set/get walletcache attribute functionality in wallet api
Diffstat (limited to 'src/wallet/api/wallet.cpp')
-rw-r--r-- | src/wallet/api/wallet.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp index 032b873d6..e7fc9f3f6 100644 --- a/src/wallet/api/wallet.cpp +++ b/src/wallet/api/wallet.cpp @@ -1697,6 +1697,17 @@ void WalletImpl::setDefaultMixin(uint32_t arg) m_wallet->default_mixin(arg); } +bool WalletImpl::setCacheAttribute(const std::string &key, const std::string &val) +{ + m_wallet->set_attribute(key, val); + return true; +} + +std::string WalletImpl::getCacheAttribute(const std::string &key) const +{ + return m_wallet->get_attribute(key); +} + bool WalletImpl::setUserNote(const std::string &txid, const std::string ¬e) { cryptonote::blobdata txid_data; |