aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2012-05-26 10:17:27 -0700
committerPieter Wuille <[email protected]>2012-05-26 10:17:27 -0700
commita52c7a1b65b4a10a36e455d9cbc98265fa6736ba (patch)
tree874ba6b64820d168d4e2060de75ea81c4c957650 /src/init.cpp
parentMerge pull request #1370 from Diapolo/add_startuptime_to_log (diff)
parentRefactor: split CKeyID/CScriptID/CTxDestination from CBitcoinAddress (diff)
downloaddiscoin-a52c7a1b65b4a10a36e455d9cbc98265fa6736ba.tar.xz
discoin-a52c7a1b65b4a10a36e455d9cbc98265fa6736ba.zip
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 27a42025e..687cb9a9d 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";
}