as there is no "default receiving address" in this GUI, don't autogenerate new addresses on receiving

This commit is contained in:
Wladimir J. van der Laan 2011-07-04 20:12:58 +02:00
parent 9dfb2d2814
commit b8f174a5ce
1 changed files with 2 additions and 2 deletions

View File

@ -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);