diff options
| author | Andrew Chow <[email protected]> | 2018-03-31 16:02:58 -0400 |
|---|---|---|
| committer | Andrew Chow <[email protected]> | 2018-04-12 17:00:30 -0400 |
| commit | 69b01e6f8b3aca781da7f049909ad75de73a804a (patch) | |
| tree | d4d73a1574e6367c60dea42293280e6a3dd491cb /src/interfaces | |
| parent | Merge #12856: Tests: Add Metaclass for BitcoinTestFramework (diff) | |
| download | discoin-69b01e6f8b3aca781da7f049909ad75de73a804a.tar.xz discoin-69b01e6f8b3aca781da7f049909ad75de73a804a.zip | |
Add cancel button to rescan progress dialog
Adds a cancel button to the rescan progress dialog. When it is clicked,
AbortRescan is called to abort a rescan
Diffstat (limited to 'src/interfaces')
| -rw-r--r-- | src/interfaces/wallet.cpp | 1 | ||||
| -rw-r--r-- | src/interfaces/wallet.h | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/interfaces/wallet.cpp b/src/interfaces/wallet.cpp index 0244fe70f..ecc073f9b 100644 --- a/src/interfaces/wallet.cpp +++ b/src/interfaces/wallet.cpp @@ -132,6 +132,7 @@ public: { return m_wallet.ChangeWalletPassphrase(old_wallet_passphrase, new_wallet_passphrase); } + void abortRescan() override { m_wallet.AbortRescan(); } bool backupWallet(const std::string& filename) override { return m_wallet.BackupWallet(filename); } std::string getWalletName() override { return m_wallet.GetName(); } bool getKeyFromPool(bool internal, CPubKey& pub_key) override diff --git a/src/interfaces/wallet.h b/src/interfaces/wallet.h index 3e27242c2..dfe3d5f71 100644 --- a/src/interfaces/wallet.h +++ b/src/interfaces/wallet.h @@ -65,6 +65,9 @@ public: virtual bool changeWalletPassphrase(const SecureString& old_wallet_passphrase, const SecureString& new_wallet_passphrase) = 0; + //! Abort a rescan. + virtual void abortRescan() = 0; + //! Back up wallet. virtual bool backupWallet(const std::string& filename) = 0; |