mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-06 14:19:59 -05:00
Bugfix: add autogenerated addresses to address book
This commit is contained in:
parent
e9fd7d9fad
commit
d5115a71a1
1 changed files with 3 additions and 0 deletions
|
@ -268,7 +268,10 @@ bool CWallet::AddToWallet(const CWalletTx& wtxIn)
|
||||||
BOOST_FOREACH(const CTxOut& txout, wtx.vout)
|
BOOST_FOREACH(const CTxOut& txout, wtx.vout)
|
||||||
{
|
{
|
||||||
if (txout.scriptPubKey == scriptDefaultKey)
|
if (txout.scriptPubKey == scriptDefaultKey)
|
||||||
|
{
|
||||||
SetDefaultKey(GetOrReuseKeyFromPool());
|
SetDefaultKey(GetOrReuseKeyFromPool());
|
||||||
|
SetAddressBookName(PubKeyToAddress(vchDefaultKey), "");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Notify UI
|
// Notify UI
|
||||||
|
|
Loading…
Add table
Reference in a new issue