| 316 | } |
| 317 | |
| 318 | void WalletStateBasic::put_with_undo(const std::string &key, const common::BinaryArray &value, bool nooverwrite) { |
| 319 | // UndoMap::iterator kit = |
| 320 | record_undo(current_undo_map, key); |
| 321 | m_db.put(key, value, nooverwrite); |
| 322 | // if(kit->second.exists && kit->second.value == value) - TODO - test before next release |
| 323 | // current_undo_map.erase(kit); |
| 324 | } |
| 325 | |
| 326 | void WalletStateBasic::del_with_undo(const std::string &key, bool mustexist) { |
| 327 | // UndoMap::iterator kit = |