From 491d98cb6d05ab61334667499bf55dced1414d65 Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Sat, 21 Nov 2020 14:28:21 +0100 Subject: [PATCH] fixed minor bugs(thanks to Sowle for review) --- src/currency_core/currency_format_utils.cpp | 2 +- src/wallet/view_iface.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/currency_core/currency_format_utils.cpp b/src/currency_core/currency_format_utils.cpp index 622d40fd..23f82a8d 100644 --- a/src/currency_core/currency_format_utils.cpp +++ b/src/currency_core/currency_format_utils.cpp @@ -1334,7 +1334,7 @@ namespace currency uint64_t get_timstamp_from_word(std::string word, bool& password_used) { uint64_t count_of_weeks = tools::mnemonic_encoding::num_by_word(word); - if (count_of_weeks > WALLET_BRAIN_DATE_MAX_WEEKS_COUNT) + if (count_of_weeks >= WALLET_BRAIN_DATE_MAX_WEEKS_COUNT) { count_of_weeks -= WALLET_BRAIN_DATE_MAX_WEEKS_COUNT; password_used = true; diff --git a/src/wallet/view_iface.h b/src/wallet/view_iface.h index 1f223143..f4ad0ea3 100644 --- a/src/wallet/view_iface.h +++ b/src/wallet/view_iface.h @@ -465,6 +465,7 @@ public: BEGIN_KV_SERIALIZE_MAP() KV_SERIALIZE(pass) KV_SERIALIZE(path) + KV_SERIALIZE(seed_pass) KV_SERIALIZE(seed_phrase) END_KV_SERIALIZE_MAP() };