mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-11 04:12:36 -03:00
Wallet: Add CAddressBookData::IsChange which returns true iff label has never been set
This commit is contained in:
parent
144b2f85da
commit
65b6bdc2b1
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue