| 1223 | } |
| 1224 | |
| 1225 | bool WalletBatch::WriteAddressPreviouslySpent(const CTxDestination& dest, bool previously_spent) |
| 1226 | { |
| 1227 | auto key{std::make_pair(DBKeys::DESTDATA, std::make_pair(EncodeDestination(dest), std::string("used")))}; |
| 1228 | return previously_spent ? WriteIC(key, std::string("1")) : EraseIC(key); |
| 1229 | } |
| 1230 | |
| 1231 | bool WalletBatch::WriteAddressReceiveRequest(const CTxDestination& dest, const std::string& id, const std::string& receive_request) |
| 1232 | { |