fix birthday parse: treat empty input as 0, update hashes
This commit is contained in:
@@ -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."),
|
||||
|
||||
Reference in New Issue
Block a user