aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2012-05-26 10:17:27 -0700
committerPieter Wuille <pieter.wuille@gmail.com>2012-05-26 10:17:27 -0700
commita52c7a1b65b4a10a36e455d9cbc98265fa6736ba (patch)
tree874ba6b64820d168d4e2060de75ea81c4c957650 /src/init.cpp
parent1e07068adf86cbcdd22cda657204090707469d7e (diff)
parent1025440184ef100a22d07c7bb543ee45cf169d64 (diff)
Merge pull request #1357 from sipa/keyid
Refactor: split CKeyID/CScriptID/CTxDestination from CBitcoinAddress
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 27a42025eb..687cb9a9d1 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -605,11 +605,11 @@ bool AppInit2()
// Create new keyUser and set as default key
RandAddSeedPerfmon();
- std::vector<unsigned char> newDefaultKey;
+ CPubKey newDefaultKey;
if (!pwalletMain->GetKeyFromPool(newDefaultKey, false))
strErrors << _("Cannot initialize keypool") << "\n";
pwalletMain->SetDefaultKey(newDefaultKey);
- if (!pwalletMain->SetAddressBookName(CBitcoinAddress(pwalletMain->vchDefaultKey), ""))
+ if (!pwalletMain->SetAddressBookName(pwalletMain->vchDefaultKey.GetID(), ""))
strErrors << _("Cannot write default address") << "\n";
}