expose set/get walletcache attribute functionality in wallet api

This commit is contained in:
dsc
2019-05-10 17:45:44 +02:00
committed by selsta
parent 2bf855e3cd
commit 4c666141e3
3 changed files with 28 additions and 0 deletions

View File

@@ -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 &note)
{
cryptonote::blobdata txid_data;