Browse Source

Bugfix: add autogenerated addresses to address book

miguelfreitas
Pieter Wuille 14 years ago
parent
commit
d5115a71a1
  1. 3
      src/wallet.cpp

3
src/wallet.cpp

@ -268,7 +268,10 @@ bool CWallet::AddToWallet(const CWalletTx& wtxIn) @@ -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

Loading…
Cancel
Save