git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
9dfb2d2
)
as there is no "default receiving address" in this GUI, don't autogenerate new addres...
author
Wladimir J. van der Laan
<laanwj@gmail.com>
Mon, 4 Jul 2011 18:12:58 +0000 (20:12 +0200)
committer
Wladimir J. van der Laan
<laanwj@gmail.com>
Mon, 4 Jul 2011 18:12:58 +0000 (20:12 +0200)
src/wallet.cpp
patch
|
blob
|
history
diff --git
a/src/wallet.cpp
b/src/wallet.cpp
index
eab58aa
..
f896336
100644
(file)
--- 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);