mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-18 22:35:39 +01:00
Merge pull request #782 from sipa/checkkeys
Check consistency of private keys
This commit is contained in:
@@ -862,6 +862,8 @@ int CWalletDB::LoadWallet(CWallet* pwallet)
|
||||
ssValue >> pkey;
|
||||
key.SetPubKey(vchPubKey);
|
||||
key.SetPrivKey(pkey);
|
||||
if (key.GetPubKey() != vchPubKey)
|
||||
return DB_CORRUPT;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user