diff --git a/src/wallet.cpp b/src/wallet.cpp index a60b0b4fa..686979047 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -268,7 +268,10 @@ bool CWallet::AddToWallet(const CWalletTx& wtxIn) BOOST_FOREACH(const CTxOut& txout, wtx.vout) { if (txout.scriptPubKey == scriptDefaultKey) + { SetDefaultKey(GetOrReuseKeyFromPool()); + SetAddressBookName(PubKeyToAddress(vchDefaultKey), ""); + } } // Notify UI