| 31 | const char* DBWarn::name() { return "TDB"; } |
| 32 | |
| 33 | std::unordered_map<h256, std::string> MemoryDB::get() const |
| 34 | { |
| 35 | #if DEV_GUARDED_DB |
| 36 | ReadGuard l(x_this); |
| 37 | #endif |
| 38 | std::unordered_map<h256, std::string> ret; |
| 39 | for (auto const& i: m_main) |
| 40 | if (!m_enforceRefs || i.second.second > 0) |
| 41 | ret.insert(make_pair(i.first, i.second.first)); |
| 42 | return ret; |
| 43 | } |
| 44 | |
| 45 | MemoryDB& MemoryDB::operator=(MemoryDB const& _c) |
| 46 | { |