| 3901 | } |
| 3902 | |
| 3903 | bool CWallet::AddDestData(const CTxDestination &dest, const std::string &key, const std::string &value) |
| 3904 | { |
| 3905 | if (boost::get<CNoDestination>(&dest)) |
| 3906 | return false; |
| 3907 | |
| 3908 | mapAddressBook[dest].destdata.insert(std::make_pair(key, value)); |
| 3909 | return WalletBatch(*database).WriteDestData(EncodeDestination(dest), key, value); |
| 3910 | } |
| 3911 | |
| 3912 | bool CWallet::EraseDestData(const CTxDestination &dest, const std::string &key) |
| 3913 | { |