fixed minor bugs(thanks to Sowle for review)

This commit is contained in:
cryptozoidberg 2020-11-21 14:28:21 +01:00
parent 5889b84acd
commit 491d98cb6d
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC
2 changed files with 2 additions and 1 deletions

View file

@ -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;

View file

@ -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()
};