aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-07-04 20:12:58 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-07-04 20:12:58 +0200
commitb8f174a5ce24d9a5dc6742bd68bd93d0a4544c2a (patch)
tree69607c6028322c63d9308ccf936e80d101451159 /src/wallet.cpp
parent9dfb2d28141dab60b5db59161e7f498ee19f9e3e (diff)
downloadbitcoin-b8f174a5ce24d9a5dc6742bd68bd93d0a4544c2a.tar.xz
as there is no "default receiving address" in this GUI, don't autogenerate new addresses on receiving
Diffstat (limited to 'src/wallet.cpp')
-rw-r--r--src/wallet.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp
index eab58aaafb..f896336773 100644
--- a/src/wallet.cpp
+++ b/src/wallet.cpp
@@ -91,7 +91,7 @@ bool CWallet::AddToWallet(const CWalletTx& wtxIn)
if (fInsertedNew || fUpdated)
if (!wtx.WriteToDisk())
return false;
-
+#ifndef QT_GUI
// If default receiving address gets used, replace it with a new one
CScript scriptDefaultKey;
scriptDefaultKey.SetBitcoinAddress(vchDefaultKey);
@@ -107,7 +107,7 @@ bool CWallet::AddToWallet(const CWalletTx& wtxIn)
walletdb.WriteName(PubKeyToAddress(vchDefaultKey), "");
}
}
-
+#endif
// Notify UI
vWalletUpdated.push_back(hash);