mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
Merge pull request #5759 from UdjinM6/bp26532
backport: partial merge bitcoin#26532: wallet: bugfix, invalid crypted key "checksum_valid" set
This commit is contained in:
parent
b1e9e05c7f
commit
f0feb36ce3
@ -388,7 +388,7 @@ ReadKeyValue(CWallet* pwallet, CDataStream& ssKey, CDataStream& ssValue,
|
|||||||
if (!ssValue.eof()) {
|
if (!ssValue.eof()) {
|
||||||
uint256 checksum;
|
uint256 checksum;
|
||||||
ssValue >> checksum;
|
ssValue >> checksum;
|
||||||
if ((checksum_valid = Hash(vchPrivKey) != checksum)) {
|
if (!(checksum_valid = Hash(vchPrivKey) == checksum)) {
|
||||||
strErr = "Error reading wallet database: Crypted key corrupt";
|
strErr = "Error reading wallet database: Crypted key corrupt";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user