aboutsummaryrefslogtreecommitdiff
path: root/src/libwalletqt/WalletManager.cpp
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2021-04-22 01:56:39 -0400
committerluigi1111 <luigi1111w@gmail.com>2021-04-22 01:56:39 -0400
commit4ddc6b1c9067aa977c6d0e2592995e0719e675d2 (patch)
tree4b8bac0cebc0afd476dcd6c6c0cbdfbfc4c99767 /src/libwalletqt/WalletManager.cpp
parent46bc94fbe8dcf642996e17f643217405cb5529a4 (diff)
parentbecc74714b51e43fd71314701fba35bdab3af5a1 (diff)
downloadmonzero-gui-4ddc6b1c9067aa977c6d0e2592995e0719e675d2.tar.gz
monzero-gui-4ddc6b1c9067aa977c6d0e2592995e0719e675d2.tar.xz
monzero-gui-4ddc6b1c9067aa977c6d0e2592995e0719e675d2.zip
Merge pull request #3420
becc747 WalletManager: support kdf round in device wallet restore (selsta)
Diffstat (limited to 'src/libwalletqt/WalletManager.cpp')
-rw-r--r--src/libwalletqt/WalletManager.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libwalletqt/WalletManager.cpp b/src/libwalletqt/WalletManager.cpp
index 9876e1f3..0c87c8e2 100644
--- a/src/libwalletqt/WalletManager.cpp
+++ b/src/libwalletqt/WalletManager.cpp
@@ -169,7 +169,7 @@ Wallet *WalletManager::createWalletFromKeys(const QString &path, const QString &
}
Wallet *WalletManager::createWalletFromDevice(const QString &path, const QString &password, NetworkType::Type nettype,
- const QString &deviceName, quint64 restoreHeight, const QString &subaddressLookahead)
+ const QString &deviceName, quint64 restoreHeight, const QString &subaddressLookahead, quint64 kdfRounds)
{
QMutexLocker locker(&m_mutex);
WalletPassphraseListenerImpl tmpListener(this);
@@ -187,7 +187,7 @@ Wallet *WalletManager::createWalletFromDevice(const QString &path, const QString
m_currentWallet = NULL;
}
Monero::Wallet * w = m_pimpl->createWalletFromDevice(path.toStdString(), password.toStdString(), static_cast<Monero::NetworkType>(nettype),
- deviceName.toStdString(), restoreHeight, subaddressLookahead.toStdString(), 1, &tmpListener);
+ deviceName.toStdString(), restoreHeight, subaddressLookahead.toStdString(), kdfRounds, &tmpListener);
w->setListener(nullptr);
m_currentWallet = new Wallet(w);
@@ -202,10 +202,10 @@ Wallet *WalletManager::createWalletFromDevice(const QString &path, const QString
void WalletManager::createWalletFromDeviceAsync(const QString &path, const QString &password, NetworkType::Type nettype,
- const QString &deviceName, quint64 restoreHeight, const QString &subaddressLookahead)
+ const QString &deviceName, quint64 restoreHeight, const QString &subaddressLookahead, quint64 kdfRounds)
{
- m_scheduler.run([this, path, password, nettype, deviceName, restoreHeight, subaddressLookahead] {
- Wallet *wallet = createWalletFromDevice(path, password, nettype, deviceName, restoreHeight, subaddressLookahead);
+ m_scheduler.run([this, path, password, nettype, deviceName, restoreHeight, subaddressLookahead, kdfRounds] {
+ Wallet *wallet = createWalletFromDevice(path, password, nettype, deviceName, restoreHeight, subaddressLookahead, kdfRounds);
emit walletCreated(wallet);
});
}