mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-22 01:28:43 +02:00
Misc fixes
This commit is contained in:
@@ -88,6 +88,12 @@ void WalletWizard::createWallet() {
|
||||
|
||||
auto seed = FeatherSeed(m_ctx->restoreHeights[m_ctx->networkType], QString::fromStdString(globals::coinName), m_ctx->seedLanguage, m_wizardFields.seed.split(" "));
|
||||
|
||||
if (m_wizardFields.mode == WizardMode::CreateWallet && m_ctx->heights.contains(m_ctx->networkType)) {
|
||||
int restoreHeight = m_ctx->heights[m_ctx->networkType];
|
||||
qInfo() << "New wallet, setting restore height to latest blockheight: " << restoreHeight;
|
||||
seed.setRestoreHeight(restoreHeight);
|
||||
}
|
||||
|
||||
if (m_wizardFields.mode == WizardMode::RestoreFromSeed && m_wizardFields.seedType == SeedType::MONERO)
|
||||
seed.setRestoreHeight(m_wizardFields.restoreHeight);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user