diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2012-02-11 15:02:05 -0800 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2012-02-11 15:02:05 -0800 |
commit | 7c39b56c3b00820256a735e4faa37e16b586fc94 (patch) | |
tree | 2310da64b51ae15341d9e016fe102c995791a752 | |
parent | b25474d1bea42ab6e20fb2b86714db0ece8f1c74 (diff) | |
parent | cd5ee3bbb4767dda47a4e8d2e929ae38c5397595 (diff) |
Merge pull request #827 from sipa/fixencrypt
Fix wallet encryption with compressed pubkeys
-rw-r--r-- | src/keystore.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keystore.cpp b/src/keystore.cpp index 4a59010fdb..18e5c377dc 100644 --- a/src/keystore.cpp +++ b/src/keystore.cpp @@ -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; |