From da93fc4a86cf5b930b62aedf58f06ab1dff22330 Mon Sep 17 00:00:00 2001 From: cryptochangements34 Date: Mon, 14 May 2018 17:43:52 -0400 Subject: export/import key images --- src/libwalletqt/Wallet.cpp | 10 ++++++++++ src/libwalletqt/Wallet.h | 4 ++++ 2 files changed, 14 insertions(+) (limited to 'src') diff --git a/src/libwalletqt/Wallet.cpp b/src/libwalletqt/Wallet.cpp index 7643f379..0047f8dd 100644 --- a/src/libwalletqt/Wallet.cpp +++ b/src/libwalletqt/Wallet.cpp @@ -336,6 +336,16 @@ quint64 Wallet::daemonBlockChainTargetHeight() const return m_daemonBlockChainTargetHeight; } +bool Wallet::exportKeyImages(const QString& path) +{ + return m_walletImpl->exportKeyImages(path.toStdString()); +} + +bool Wallet::importKeyImages(const QString& path) +{ + return m_walletImpl->importKeyImages(path.toStdString()); +} + bool Wallet::refresh() { bool result = m_walletImpl->refresh(); diff --git a/src/libwalletqt/Wallet.h b/src/libwalletqt/Wallet.h index f37d556d..df413363 100644 --- a/src/libwalletqt/Wallet.h +++ b/src/libwalletqt/Wallet.h @@ -159,6 +159,10 @@ public: //! returns daemon's blockchain target height Q_INVOKABLE quint64 daemonBlockChainTargetHeight() const; + //! export/import key images + Q_INVOKABLE bool exportKeyImages(const QString& path); + Q_INVOKABLE bool importKeyImages(const QString& path); + //! refreshes the wallet Q_INVOKABLE bool refresh(); -- cgit v1.2.3