From b93993c32f43772c2cb7d35b1b33517b58980193 Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Tue, 1 Dec 2020 20:05:21 +0100 Subject: [PATCH] getting less dramatic if seed password is wrong --- src/currency_core/account.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/currency_core/account.cpp b/src/currency_core/account.cpp index 117874ca..ff8460ab 100644 --- a/src/currency_core/account.cpp +++ b/src/currency_core/account.cpp @@ -208,7 +208,11 @@ namespace currency h = crypto::cn_fast_hash(&h, sizeof h); uint64_t h_64 = *reinterpret_cast(&h); uint16_t checksum_calculated = h_64 % (checksum_max + 1); - CHECK_AND_ASSERT_MES(checksum == checksum_calculated, false, "seed phase has invalid checksum: " << checksum_calculated << ", while " << checksum << " is expected, check your words"); + if (checksum != checksum_calculated) + { + LOG_PRINT_L0("seed phase has invalid checksum: " << checksum_calculated << ", while " << checksum << " is expected, check your words"); + return false; + } } bool r = restore_keys(keys_seed_processed_binary);