aboutsummaryrefslogtreecommitdiff
path: root/src/libwalletqt
diff options
context:
space:
mode:
authortobtoht <thotbot@protonmail.com>2021-04-24 05:51:19 +0200
committerselsta <selsta@sent.at>2021-09-03 05:36:58 +0200
commite36b166edde49f5943e745137c1796beccdb08bb (patch)
tree752abb5bab25dd1c135efca9c2cc539557365454 /src/libwalletqt
parent113efbfdf093401d3044ce370b7039ea8cc596bf (diff)
downloadmonzero-gui-e36b166edde49f5943e745137c1796beccdb08bb.tar.gz
monzero-gui-e36b166edde49f5943e745137c1796beccdb08bb.tar.xz
monzero-gui-e36b166edde49f5943e745137c1796beccdb08bb.zip
Wallet: import / export output function
Diffstat (limited to 'src/libwalletqt')
-rw-r--r--src/libwalletqt/Wallet.cpp8
-rw-r--r--src/libwalletqt/Wallet.h4
2 files changed, 12 insertions, 0 deletions
diff --git a/src/libwalletqt/Wallet.cpp b/src/libwalletqt/Wallet.cpp
index f7cc1965..82b101b1 100644
--- a/src/libwalletqt/Wallet.cpp
+++ b/src/libwalletqt/Wallet.cpp
@@ -499,6 +499,14 @@ bool Wallet::importKeyImages(const QString& path)
return m_walletImpl->importKeyImages(path.toStdString());
}
+bool Wallet::exportOutputs(const QString& path, bool all) {
+ return m_walletImpl->exportOutputs(path.toStdString(), all);
+}
+
+bool Wallet::importOutputs(const QString& path) {
+ return m_walletImpl->importOutputs(path.toStdString());
+}
+
bool Wallet::refresh(bool historyAndSubaddresses /* = true */)
{
refreshingSet(true);
diff --git a/src/libwalletqt/Wallet.h b/src/libwalletqt/Wallet.h
index e0157ee3..e1d19914 100644
--- a/src/libwalletqt/Wallet.h
+++ b/src/libwalletqt/Wallet.h
@@ -208,6 +208,10 @@ public:
Q_INVOKABLE bool exportKeyImages(const QString& path);
Q_INVOKABLE bool importKeyImages(const QString& path);
+ //! export/import outputs
+ Q_INVOKABLE bool exportOutputs(const QString& path, bool all = false);
+ Q_INVOKABLE bool importOutputs(const QString& path);
+
//! refreshes the wallet
Q_INVOKABLE bool refresh(bool historyAndSubaddresses = true);