restore 10 zaddr by default, and allow variable zaddr size

This commit is contained in:
DenioD
2020-06-18 13:46:04 +02:00
parent 0320bc9f13
commit 5f67dd4a32
6 changed files with 34 additions and 16 deletions

View File

@@ -242,10 +242,14 @@ bool RestoreSeedPage::validatePage() {
return false;
}
///Number
QString number_str = form.number->text();
qint64 number = number_str.toUInt();
// 3. Attempt to restore wallet with the seed phrase
{
char* resp = litelib_initialize_new_from_phrase(parent->dangerous, parent->server.toStdString().c_str(),
seed.toStdString().c_str(), birthday);
seed.toStdString().c_str(), birthday, number);
QString reply = litelib_process_response(resp);
if (reply.toUpper().trimmed() != "OK") {