mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 18:53:23 -03:00
Add addresses that we've sent to to the address book
This commit is contained in:
parent
5d5990dc8f
commit
c51f051257
1 changed files with 5 additions and 0 deletions
|
@ -106,6 +106,11 @@ ClientModel::StatusCode ClientModel::sendCoins(const QString &payTo, qint64 payA
|
|||
return MiscError;
|
||||
}
|
||||
}
|
||||
// Add addresses that we've sent to to the address book
|
||||
std::string strAddress = payTo.toStdString();
|
||||
CRITICAL_BLOCK(cs_mapAddressBook)
|
||||
if (!mapAddressBook.count(strAddress))
|
||||
SetAddressBookName(strAddress, "");
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue