diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2020-02-22 02:04:27 +0000 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2020-04-02 16:02:07 +0000 |
commit | 65b6bdc2b164343ec3cc3d32a0297daff9e24fec (patch) | |
tree | 9970b36b53d01bde52b2f373197a42008df0dd46 /src | |
parent | 144b2f85da4d51bf7d72b987888ddcaf5b429eed (diff) | |
download | bitcoin-65b6bdc2b164343ec3cc3d32a0297daff9e24fec.tar.xz |
Wallet: Add CAddressBookData::IsChange which returns true iff label has never been set
Diffstat (limited to 'src')
-rw-r--r-- | src/wallet/wallet.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index 47268ba88c..788f29c039 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -182,6 +182,7 @@ public: class CAddressBookData { private: + bool m_change{true}; std::string m_label; public: const std::string& name; @@ -192,7 +193,9 @@ public: typedef std::map<std::string, std::string> StringMap; StringMap destdata; + bool IsChange() const { return m_change; } void SetLabel(const std::string& label) { + m_change = false; m_label = label; } }; |