aboutsummaryrefslogtreecommitdiff
path: root/src/libwalletqt/Wallet.cpp
diff options
context:
space:
mode:
authordsc <xmrdsc@protonmail.com>2019-05-25 21:16:05 +0200
committerdsc <xmrdsc@protonmail.com>2019-05-25 22:38:38 +0200
commitab47b4a783c4d2128a37b4aa33041de65fc860b5 (patch)
tree546c593df78653dc6143720f4b976d1766f5455f /src/libwalletqt/Wallet.cpp
parentc286c7e5a8e67d769bc9054f661ab742a8b1a5ba (diff)
downloadmonzero-gui-ab47b4a783c4d2128a37b4aa33041de65fc860b5.tar.gz
monzero-gui-ab47b4a783c4d2128a37b4aa33041de65fc860b5.tar.xz
monzero-gui-ab47b4a783c4d2128a37b4aa33041de65fc860b5.zip
Expose get/set attrs for wallet cache in libwalletqt, requires #5534
Diffstat (limited to 'src/libwalletqt/Wallet.cpp')
-rw-r--r--src/libwalletqt/Wallet.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libwalletqt/Wallet.cpp b/src/libwalletqt/Wallet.cpp
index 2f106aed..d2e659f0 100644
--- a/src/libwalletqt/Wallet.cpp
+++ b/src/libwalletqt/Wallet.cpp
@@ -634,6 +634,15 @@ void Wallet::setPaymentId(const QString &paymentId)
m_paymentId = paymentId;
}
+QString Wallet::getCacheAttribute(const QString &key) const {
+ return QString::fromStdString(m_walletImpl->getCacheAttribute(key.toStdString()));
+}
+
+bool Wallet::setCacheAttribute(const QString &key, const QString &val)
+{
+ return m_walletImpl->setCacheAttribute(key.toStdString(), val.toStdString());
+}
+
bool Wallet::setUserNote(const QString &txid, const QString &note)
{
return m_walletImpl->setUserNote(txid.toStdString(), note.toStdString());