mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 06:58:57 +01:00
Add purpose arg to Wallet::getAddress
Also make all arguments to getAddress required and document args at call sites.
This commit is contained in:
@@ -274,7 +274,8 @@ WalletModel::SendCoinsReturn WalletModel::sendCoins(WalletModelTransaction &tran
|
||||
{
|
||||
// Check if we have a new address or an updated label
|
||||
std::string name;
|
||||
if (!m_wallet->getAddress(dest, &name))
|
||||
if (!m_wallet->getAddress(
|
||||
dest, &name, /* is_mine= */ nullptr, /* purpose= */ nullptr))
|
||||
{
|
||||
m_wallet->setAddressBook(dest, strLabel, "send");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user