fixed minor bugs(thanks to Sowle for review)
This commit is contained in:
parent
5889b84acd
commit
491d98cb6d
2 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue