aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.cpp
diff options
context:
space:
mode:
authorJeff Garzik <[email protected]>2011-07-13 08:53:57 -0700
committerJeff Garzik <[email protected]>2011-07-13 08:53:57 -0700
commitb8cbbc2c28679295a5cfb7ac553ee81dd950fbf5 (patch)
tree9d1d88dd0e8e8c8a9c07f4b81024d9f50ff2c9c8 /src/wallet.cpp
parentMerge pull request #404 from TheBlueMatt/newenc (diff)
parentBugfix: add autogenerated addresses to address book (diff)
downloaddiscoin-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.cpp3
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