Merge pull request #5534

4c66614 expose set/get walletcache attribute functionality in wallet api (selsta)
This commit is contained in:
luigi1111
2019-07-24 14:09:58 -05:00
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;