]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
Wizard: don't add erasure word for polyseed
authortobtoht <thotbot@protonmail.com>
Tue, 24 May 2022 07:48:23 +0000 (09:48 +0200)
committertobtoht <thotbot@protonmail.com>
Tue, 24 May 2022 07:48:23 +0000 (09:48 +0200)
src/wizard/PageWalletRestoreSeed.cpp

index ab9eddfb533f66e0745048ccf38030ad8489998b..e4c752a9093bac5e791eeb3da7c05d1c1018db40 100644 (file)
@@ -37,13 +37,14 @@ PageWalletRestoreSeed::PageWalletRestoreSeed(WizardFields *fields, QWidget *pare
     QStringList bip39English;
     for (int i = 0; i != 2048; i++)
         bip39English << QString::fromStdString(wordlist::english.get_word(i));
-    // Restore has limited error correction capability, namely it can correct a single erasure
-    // (illegible word with a known location). This can be tested by replacing a word with xxxx
-    bip39English << "xxxx";
 
     m_polyseed.length = 16;
     m_polyseed.setWords(bip39English);
 
+    // Restore has limited error correction capability, namely it can correct a single erasure
+    // (illegible word with a known location). This can be tested by replacing a word with xxxx
+    bip39English << "xxxx";
+
     m_tevador.length = 14;
     m_tevador.setWords(bip39English);