git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
e9fd7d9
)
Bugfix: add autogenerated addresses to address book
author
Pieter Wuille
<pieter.wuille@gmail.com>
Wed, 13 Jul 2011 11:05:08 +0000 (13:05 +0200)
committer
Pieter Wuille
<pieter.wuille@gmail.com>
Wed, 13 Jul 2011 11:05:08 +0000 (13:05 +0200)
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