mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-29 21:51:03 +02:00
Wallet: Add CAddressBookData::IsChange which returns true iff label has never been set
This commit is contained in:
@@ -182,6 +182,7 @@ public:
|
|||||||
class CAddressBookData
|
class CAddressBookData
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
|
bool m_change{true};
|
||||||
std::string m_label;
|
std::string m_label;
|
||||||
public:
|
public:
|
||||||
const std::string& name;
|
const std::string& name;
|
||||||
@@ -192,7 +193,9 @@ public:
|
|||||||
typedef std::map<std::string, std::string> StringMap;
|
typedef std::map<std::string, std::string> StringMap;
|
||||||
StringMap destdata;
|
StringMap destdata;
|
||||||
|
|
||||||
|
bool IsChange() const { return m_change; }
|
||||||
void SetLabel(const std::string& label) {
|
void SetLabel(const std::string& label) {
|
||||||
|
m_change = false;
|
||||||
m_label = label;
|
m_label = label;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user