Browse Source

Merge pull request #827 from sipa/fixencrypt

Fix wallet encryption with compressed pubkeys
miguelfreitas
Pieter Wuille 13 years ago
parent
commit
7c39b56c3b
  1. 2
      src/keystore.cpp

2
src/keystore.cpp

@ -192,7 +192,7 @@ bool CCryptoKeyStore::EncryptKeys(CKeyingMaterial& vMasterKeyIn) @@ -192,7 +192,7 @@ bool CCryptoKeyStore::EncryptKeys(CKeyingMaterial& vMasterKeyIn)
BOOST_FOREACH(KeyMap::value_type& mKey, mapKeys)
{
CKey key;
if (!key.SetSecret(mKey.second.first, false))
if (!key.SetSecret(mKey.second.first, mKey.second.second))
return false;
const std::vector<unsigned char> vchPubKey = key.GetPubKey();
std::vector<unsigned char> vchCryptedSecret;

Loading…
Cancel
Save