mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01:00
Merge pull request #782 from sipa/checkkeys
Check consistency of private keys
This commit is contained in:
commit
4c932cca6f
@ -862,6 +862,8 @@ int CWalletDB::LoadWallet(CWallet* pwallet)
|
|||||||
ssValue >> pkey;
|
ssValue >> pkey;
|
||||||
key.SetPubKey(vchPubKey);
|
key.SetPubKey(vchPubKey);
|
||||||
key.SetPrivKey(pkey);
|
key.SetPrivKey(pkey);
|
||||||
|
if (key.GetPubKey() != vchPubKey)
|
||||||
|
return DB_CORRUPT;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user