diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2020-02-22 01:52:47 +0000 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2020-04-02 16:01:36 +0000 |
commit | 144b2f85da4d51bf7d72b987888ddcaf5b429eed (patch) | |
tree | 756637308d5c336f6b45819936d99cb11d1638e9 /src/wallet/walletdb.cpp | |
parent | b86cd155f6f661052042048aa7cfc2a397afe4f7 (diff) | |
download | bitcoin-144b2f85da4d51bf7d72b987888ddcaf5b429eed.tar.xz |
Wallet: Require usage of new CAddressBookData::setLabel to change label
Diffstat (limited to 'src/wallet/walletdb.cpp')
-rw-r--r-- | src/wallet/walletdb.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wallet/walletdb.cpp b/src/wallet/walletdb.cpp index 2e08a044da..568b21ed00 100644 --- a/src/wallet/walletdb.cpp +++ b/src/wallet/walletdb.cpp @@ -206,7 +206,9 @@ ReadKeyValue(CWallet* pwallet, CDataStream& ssKey, CDataStream& ssValue, if (strType == DBKeys::NAME) { std::string strAddress; ssKey >> strAddress; - ssValue >> pwallet->m_address_book[DecodeDestination(strAddress)].name; + std::string label; + ssValue >> label; + pwallet->m_address_book[DecodeDestination(strAddress)].SetLabel(label); } else if (strType == DBKeys::PURPOSE) { std::string strAddress; ssKey >> strAddress; |