aboutsummaryrefslogtreecommitdiff
path: root/src/keystore.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2012-02-11 16:35:13 +0100
committerPieter Wuille <pieter.wuille@gmail.com>2012-02-11 16:42:44 +0100
commitcd5ee3bbb4767dda47a4e8d2e929ae38c5397595 (patch)
tree590687f42e3e2d37411402332626017062ed2f05 /src/keystore.cpp
parent26d9e2c19dc209ba5616e9fca9f521dd7ed94e81 (diff)
Fix wallet encryption with compressed pubkeys
Diffstat (limited to 'src/keystore.cpp')
-rw-r--r--src/keystore.cpp2
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;