|
|
@ -1142,8 +1142,7 @@ void MainWindow::doImport(QList<QString>* keys) { |
|
|
|
QString key = keys->takeFirst(); |
|
|
|
bool rescan = keys->isEmpty(); |
|
|
|
|
|
|
|
if (key.startsWith("SK") || |
|
|
|
key.startsWith("secret")) { // Z key
|
|
|
|
if (key.startsWith("SK") || Settings::getInstance()->isValidSaplingPrivateKey(key) ) { |
|
|
|
rpc->importZPrivKey(key, rescan, [=] (auto) { this->doImport(keys); }); |
|
|
|
} else { |
|
|
|
rpc->importTPrivKey(key, rescan, [=] (auto) { this->doImport(keys); }); |
|
|
|