libwalletqt: added restore-height parameter to recoveryWallet();

This commit is contained in:
Jacob Brydolf 2016-10-08 01:45:17 +02:00 committed by Ilya Kitaev
parent 0e0b0bec8d
commit 9f336a5c51
2 changed files with 3 additions and 3 deletions

View File

@ -61,9 +61,9 @@ void WalletManager::openWalletAsync(const QString &path, const QString &password
} }
Wallet *WalletManager::recoveryWallet(const QString &path, const QString &memo, bool testnet) Wallet *WalletManager::recoveryWallet(const QString &path, const QString &memo, bool testnet, quint64 restoreHeight)
{ {
Bitmonero::Wallet * w = m_pimpl->recoveryWallet(path.toStdString(), memo.toStdString(), testnet); Bitmonero::Wallet * w = m_pimpl->recoveryWallet(path.toStdString(), memo.toStdString(), testnet, restoreHeight);
Wallet * wallet = new Wallet(w); Wallet * wallet = new Wallet(w);
return wallet; return wallet;
} }

View File

@ -48,7 +48,7 @@ public:
// wizard: recoveryWallet path; hint: internally it recorvers wallet and set password = "" // wizard: recoveryWallet path; hint: internally it recorvers wallet and set password = ""
Q_INVOKABLE Wallet * recoveryWallet(const QString &path, const QString &memo, Q_INVOKABLE Wallet * recoveryWallet(const QString &path, const QString &memo,
bool testnet = false); bool testnet = false, quint64 restoreHeight = 0);
/*! /*!
* \brief closeWallet - closes wallet and frees memory * \brief closeWallet - closes wallet and frees memory