mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-02-22 09:40:22 +02:00
libwalletqt: added restore-height parameter to recoveryWallet();
This commit is contained in:
parent
0e0b0bec8d
commit
9f336a5c51
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user