wizard: allow restoring legacy seeds without checksum word

This commit is contained in:
tobtoht
2024-03-13 14:28:16 +01:00
parent 52a69a454e
commit f8e8deb276
3 changed files with 17 additions and 6 deletions
+7 -2
View File
@@ -64,8 +64,13 @@ Seed::Seed(Type type, QStringList mnemonic, NetworkType::Type networkType)
: type(type), mnemonic(std::move(mnemonic)), networkType(networkType)
{
if (m_seedLength[this->type] != this->mnemonic.length()) {
this->errorString = "Invalid seed length";
return;
if (this->type == Seed::Type::MONERO && this->mnemonic.length() == 24) {
qDebug() << "Loaded legacy seed without checksum";
}
else {
this->errorString = "Invalid seed length";
return;
}
}
if (this->type == Type::POLYSEED) {