mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-25 14:04:27 +00:00
Merge pull request #405 from sipa/syncdefault
Bugfix: add autogenerated addresses to address book
This commit is contained in:
commit
b8cbbc2c28
@ -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…
x
Reference in New Issue
Block a user