mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-02-05 03:14:16 +00:00
Bugfix: add autogenerated addresses to address book
This commit is contained in:
parent
e9fd7d9fad
commit
d5115a71a1
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user