fix birthday parse: treat empty input as 0, update hashes
This commit is contained in:
@@ -14,5 +14,5 @@
|
||||
|
||||
| File | SHA-256 |
|
||||
|---|---|
|
||||
| `SilentDragonXLite` (Linux) | `ce3993107dad6207a260b46026a36cf990ca30262c1db1c0e56ad03464622241` |
|
||||
| `SilentDragonXLite.exe` (Windows) | `4dabe9e3596ba5a1b11b5ff302ed7c67c9be3eb17f456f607a68015684897b5e` |
|
||||
| `SilentDragonXLite` (Linux) | `dcf06258be02d77bd3bcfa34414f68d99f619d88668029e7c84697159fbe5010` |
|
||||
| `SilentDragonXLite.exe` (Windows) | `5faba5338cc88d05883e8b1b0ce8486db3f08607a6cd57826b361c2863e36617` |
|
||||
|
||||
Binary file not shown.
@@ -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