diff options
author | Jeff Garzik <jgarzik@exmulti.com> | 2011-07-13 08:53:57 -0700 |
---|---|---|
committer | Jeff Garzik <jgarzik@exmulti.com> | 2011-07-13 08:53:57 -0700 |
commit | b8cbbc2c28679295a5cfb7ac553ee81dd950fbf5 (patch) | |
tree | 9d1d88dd0e8e8c8a9c07f4b81024d9f50ff2c9c8 /src | |
parent | 225e60ce34d8756f23e7e76b545131601f60e1dc (diff) | |
parent | d5115a71a1bd8e769e8aa4009bed7a4f0cf5b510 (diff) |
Merge pull request #405 from sipa/syncdefault
Bugfix: add autogenerated addresses to address book
Diffstat (limited to 'src')
-rw-r--r-- | src/wallet.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp index a60b0b4fa5..6869790472 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 |