aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorGavin Andresen <[email protected]>2013-08-22 01:54:28 -0700
committerGavin Andresen <[email protected]>2013-08-22 01:54:28 -0700
commite62f8d72f349aec0865268c089ae99fedd314af1 (patch)
tree7735f34781f1ced27553b202bceaa74048018636 /src/init.cpp
parentMerge pull request #2922 from Diapolo/translations (diff)
parentPayment Protocol: X509-validated payment requests (diff)
downloaddiscoin-e62f8d72f349aec0865268c089ae99fedd314af1.tar.xz
discoin-e62f8d72f349aec0865268c089ae99fedd314af1.zip
Merge pull request #2539 from gavinandresen/paymentrequest
Payment Protocol Work
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 7182c1414..726356504 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -373,9 +373,6 @@ bool AppInit2(boost::thread_group& threadGroup)
// ********************************************************* Step 2: parameter interactions
Checkpoints::fEnabled = GetBoolArg("-checkpoints", true);
- if (!SelectParamsFromCommandLine()) {
- return InitError("Invalid combination of -testnet and -regtest.");
- }
if (mapArgs.count("-bind")) {
// when specifying an explicit binding address, you want to listen on it
@@ -898,7 +895,7 @@ bool AppInit2(boost::thread_group& threadGroup)
CPubKey newDefaultKey;
if (pwalletMain->GetKeyFromPool(newDefaultKey, false)) {
pwalletMain->SetDefaultKey(newDefaultKey);
- if (!pwalletMain->SetAddressBookName(pwalletMain->vchDefaultKey.GetID(), ""))
+ if (!pwalletMain->SetAddressBook(pwalletMain->vchDefaultKey.GetID(), "", "receive"))
strErrors << _("Cannot write default address") << "\n";
}