MCPcopy Create free account
hub / github.com/bcndev/bytecoin / put_with_undo

Method put_with_undo

src/Core/WalletStateBasic.cpp:318–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316}
317
318void 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
326void WalletStateBasic::del_with_undo(const std::string &key, bool mustexist) {
327 // UndoMap::iterator kit =

Callers

nothing calls this directly

Calls 1

putMethod · 0.45

Tested by

no test coverage detected