aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2020-02-22 02:04:27 +0000
committerLuke Dashjr <luke-jr+git@utopios.org>2020-04-02 16:02:07 +0000
commit65b6bdc2b164343ec3cc3d32a0297daff9e24fec (patch)
tree9970b36b53d01bde52b2f373197a42008df0dd46 /src
parent144b2f85da4d51bf7d72b987888ddcaf5b429eed (diff)
downloadbitcoin-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.h3
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;
}
};