aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2021-09-05 12:54:13 -0400
committerluigi1111 <luigi1111w@gmail.com>2021-09-05 12:54:13 -0400
commit35aee155d79be7c2336e7d02e2419af12e01c6e1 (patch)
tree744ec73c3ec058ecc2f50896e30e13c0f8252fb9 /src
parentd93af5a4696143c521dceced3fe2cfc3e04674cb (diff)
parent36940f07c9de9a2acbe64771f64646002c739a1c (diff)
downloadmonzero-gui-35aee155d79be7c2336e7d02e2419af12e01c6e1.tar.gz
monzero-gui-35aee155d79be7c2336e7d02e2419af12e01c6e1.tar.xz
monzero-gui-35aee155d79be7c2336e7d02e2419af12e01c6e1.zip
Merge pull request #3435
36940f0 Transfer: add support for outputs import / export (selsta) e36b166 Wallet: import / export output function (tobtoht)
Diffstat (limited to 'src')
-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 691e03d3..c2aaab8f 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 e55bceb9..c736df7d 100644
--- a/src/libwalletqt/Wallet.h
+++ b/src/libwalletqt/Wallet.h
@@ -208,6 +208,10 @@ public:
Q_INVOKABLE bool exportKeyImages(const QString& path, bool all = false);
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);