git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
225e60c
)
Merge pull request #405 from sipa/syncdefault
author
Jeff Garzik
<jgarzik@exmulti.com>
Wed, 13 Jul 2011 15:53:57 +0000 (08:53 -0700)
committer
Jeff Garzik
<jgarzik@exmulti.com>
Wed, 13 Jul 2011 15:53:57 +0000 (08:53 -0700)
Bugfix: add autogenerated addresses to address book
src/wallet.cpp
patch
|
blob
|
history
diff --git
a/src/wallet.cpp
b/src/wallet.cpp
index
a60b0b4
..
6869790
100644
(file)
--- 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