|
|
@ -91,7 +91,7 @@ bool CWallet::AddToWallet(const CWalletTx& wtxIn) |
|
|
|
if (fInsertedNew || fUpdated) |
|
|
|
if (fInsertedNew || fUpdated) |
|
|
|
if (!wtx.WriteToDisk()) |
|
|
|
if (!wtx.WriteToDisk()) |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
|
|
|
|
#ifndef QT_GUI |
|
|
|
// If default receiving address gets used, replace it with a new one
|
|
|
|
// If default receiving address gets used, replace it with a new one
|
|
|
|
CScript scriptDefaultKey; |
|
|
|
CScript scriptDefaultKey; |
|
|
|
scriptDefaultKey.SetBitcoinAddress(vchDefaultKey); |
|
|
|
scriptDefaultKey.SetBitcoinAddress(vchDefaultKey); |
|
|
@ -107,7 +107,7 @@ bool CWallet::AddToWallet(const CWalletTx& wtxIn) |
|
|
|
walletdb.WriteName(PubKeyToAddress(vchDefaultKey), ""); |
|
|
|
walletdb.WriteName(PubKeyToAddress(vchDefaultKey), ""); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
#endif |
|
|
|
// Notify UI
|
|
|
|
// Notify UI
|
|
|
|
vWalletUpdated.push_back(hash); |
|
|
|
vWalletUpdated.push_back(hash); |
|
|
|
|
|
|
|
|
|
|
|