diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2019-07-24 14:09:58 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2019-07-24 14:09:58 -0500 |
| commit | b333513db79e41620ea6947ac6fe1122b8b3006d (patch) | |
| tree | 57dd5017d4168232514439889f116c872993493a /src/wallet/api/wallet.cpp | |
| parent | 38e0e58a95d2c5726a1b9bf1a2261ec96ed412e1 (diff) | |
| parent | 4c666141e3ee68868ccea7dd34d5c1875378cf5a (diff) | |
| download | monzero-core-b333513db79e41620ea6947ac6fe1122b8b3006d.tar.gz monzero-core-b333513db79e41620ea6947ac6fe1122b8b3006d.tar.xz monzero-core-b333513db79e41620ea6947ac6fe1122b8b3006d.zip | |
Merge pull request #5534
4c66614 expose set/get walletcache attribute functionality in wallet api (selsta)
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 1711db482..5902eef4b 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; |
