fix birthday parse: treat empty input as 0, update hashes

This commit is contained in:
2026-03-22 10:59:30 -05:00
parent 7ec272df90
commit ff8368ca97
3 changed files with 8 additions and 3 deletions

View File

@@ -193,7 +193,12 @@ MainWindow::MainWindow(QWidget *parent) :
// 2. Validate birthday
QString birthday_str = restoreSeed.birthday->toPlainText().trimmed();
bool ok;
qint64 birthday = birthday_str.toUInt(&ok);
qint64 birthday = 0;
if (birthday_str.isEmpty()) {
ok = true;
} else {
birthday = birthday_str.toUInt(&ok);
}
if (!ok) {
QMessageBox::warning(this, tr("Failed to parse wallet birthday"),
tr("Couldn't understand wallet birthday. This should be a block height from where to rescan the wallet. You can leave it as '0' if you don't know what it should be."),