build: use runtime setting for wallet rather than QT_GUI define
This commit is contained in:
parent
7f61f1ac78
commit
ee4b170c92
@ -459,7 +459,8 @@ 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 (!fHaveGUI) {
|
||||||
// If default receiving address gets used, replace it with a new one
|
// If default receiving address gets used, replace it with a new one
|
||||||
if (vchDefaultKey.IsValid()) {
|
if (vchDefaultKey.IsValid()) {
|
||||||
CScript scriptDefaultKey;
|
CScript scriptDefaultKey;
|
||||||
@ -477,7 +478,7 @@ bool CWallet::AddToWallet(const CWalletTx& wtxIn)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
}
|
||||||
// since AddToWallet is called directly for self-originating transactions, check for consumption of own coins
|
// since AddToWallet is called directly for self-originating transactions, check for consumption of own coins
|
||||||
WalletUpdateSpent(wtx);
|
WalletUpdateSpent(wtx);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user