diff options
| author | tobtoht <tob@featherwallet.org> | 2026-04-08 20:37:13 +0000 |
|---|---|---|
| committer | tobtoht <tob@featherwallet.org> | 2026-04-08 20:37:13 +0000 |
| commit | 943ebea536459e736552dbb097115fef3ad57b7e (patch) | |
| tree | 0719b394335f01486e0b66e34d60b1f145ed8a24 /src/wallet | |
| parent | 515f5467321fcbacdce057dddbb112509774c907 (diff) | |
| parent | e7b121ac17d6e0c3bb6f17911ae9ab18132b3c67 (diff) | |
| download | monzero-core-943ebea536459e736552dbb097115fef3ad57b7e.tar.gz monzero-core-943ebea536459e736552dbb097115fef3ad57b7e.tar.xz monzero-core-943ebea536459e736552dbb097115fef3ad57b7e.zip | |
Merge pull request #10405
e7b121a wallet2: fix background wallet detection in verify_password() (selsta)
Diffstat (limited to 'src/wallet')
| -rw-r--r-- | src/wallet/wallet2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 00157cb3e..4a14c3b8c 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -5502,7 +5502,7 @@ bool wallet2::verify_password(const std::string& keys_file_name, const epee::wip { get_custom_background_key(password, key, kdf_rounds); crypto::chacha20(keys_file_data.account_data.data(), keys_file_data.account_data.size(), key, keys_file_data.iv, &account_data[0]); - const bool is_background_wallet = json.Parse(account_data.c_str()).HasParseError() && json.IsObject(); + const bool is_background_wallet = !json.Parse(account_data.c_str()).HasParseError() && json.IsObject(); no_spend_key = no_spend_key || is_background_wallet; } } |
