diff options
| author | Jeff Garzik <[email protected]> | 2011-07-13 08:53:57 -0700 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2011-07-13 08:53:57 -0700 |
| commit | b8cbbc2c28679295a5cfb7ac553ee81dd950fbf5 (patch) | |
| tree | 9d1d88dd0e8e8c8a9c07f4b81024d9f50ff2c9c8 /src/wallet.cpp | |
| parent | Merge pull request #404 from TheBlueMatt/newenc (diff) | |
| parent | Bugfix: add autogenerated addresses to address book (diff) | |
| download | discoin-b8cbbc2c28679295a5cfb7ac553ee81dd950fbf5.tar.xz discoin-b8cbbc2c28679295a5cfb7ac553ee81dd950fbf5.zip | |
Merge pull request #405 from sipa/syncdefault
Bugfix: add autogenerated addresses to address book
Diffstat (limited to 'src/wallet.cpp')
| -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 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 |