diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2018-07-17 18:14:28 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2018-07-17 18:14:28 -0500 |
| commit | 1107daab98ccf39a259bf1979c751e18cb92ee8b (patch) | |
| tree | b180ae6a5c1821a0b7893d61d32dbe7886ee043f /src | |
| parent | 292c11ee06407774e3d0bcf5e51b6f0cf15ba27e (diff) | |
| parent | da93fc4a86cf5b930b62aedf58f06ab1dff22330 (diff) | |
| download | monzero-gui-1107daab98ccf39a259bf1979c751e18cb92ee8b.tar.gz monzero-gui-1107daab98ccf39a259bf1979c751e18cb92ee8b.tar.xz monzero-gui-1107daab98ccf39a259bf1979c751e18cb92ee8b.zip | |
Merge pull request #1415
da93fc4 export/import key images (cryptochangements34)
Diffstat (limited to 'src')
| -rw-r--r-- | src/libwalletqt/Wallet.cpp | 10 | ||||
| -rw-r--r-- | src/libwalletqt/Wallet.h | 4 |
2 files changed, 14 insertions, 0 deletions
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(); |
