aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCory Fields <theuni-nospam-@xbmc.org>2013-05-26 14:18:33 -0400
committerCory Fields <theuni-nospam-@xbmc.org>2013-06-04 03:54:14 -0400
commit34994ebcb0cb5164f515266ebc5524a9608cb1c8 (patch)
treef427a850ce641e023c50ef945677f18cb769c4ac
parentee4b170c929b0f0d0b5a9fcaa0c35c79e9ac157c (diff)
downloadbitcoin-34994ebcb0cb5164f515266ebc5524a9608cb1c8.tar.xz
build: cosmetics after last commit
-rw-r--r--src/wallet.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp
index 17a35d9403..549d9bbf4b 100644
--- a/src/wallet.cpp
+++ b/src/wallet.cpp
@@ -461,24 +461,24 @@ bool CWallet::AddToWallet(const CWalletTx& wtxIn)
return false;
if (!fHaveGUI) {
- // If default receiving address gets used, replace it with a new one
- if (vchDefaultKey.IsValid()) {
- CScript scriptDefaultKey;
- scriptDefaultKey.SetDestination(vchDefaultKey.GetID());
- BOOST_FOREACH(const CTxOut& txout, wtx.vout)
- {
- if (txout.scriptPubKey == scriptDefaultKey)
+ // If default receiving address gets used, replace it with a new one
+ if (vchDefaultKey.IsValid()) {
+ CScript scriptDefaultKey;
+ scriptDefaultKey.SetDestination(vchDefaultKey.GetID());
+ BOOST_FOREACH(const CTxOut& txout, wtx.vout)
{
- CPubKey newDefaultKey;
- if (GetKeyFromPool(newDefaultKey, false))
+ if (txout.scriptPubKey == scriptDefaultKey)
{
- SetDefaultKey(newDefaultKey);
- SetAddressBookName(vchDefaultKey.GetID(), "");
+ CPubKey newDefaultKey;
+ if (GetKeyFromPool(newDefaultKey, false))
+ {
+ SetDefaultKey(newDefaultKey);
+ SetAddressBookName(vchDefaultKey.GetID(), "");
+ }
}
}
}
}
- }
// since AddToWallet is called directly for self-originating transactions, check for consumption of own coins
WalletUpdateSpent(wtx);