MCPcopy Create free account
hub / github.com/LUX-Core/lux / get

Method get

src/cpp-ethereum/libdevcore/MemoryDB.cpp:33–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31const char* DBWarn::name() { return "TDB"; }
32
33std::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
45MemoryDB& MemoryDB::operator=(MemoryDB const& _c)
46{

Callers 15

mainFunction · 0.45
connectMethod · 0.45
restoreNetworkMethod · 0.45
NodeTableMethod · 0.45
evictMethod · 0.45
noteActiveNodeMethod · 0.45
dropNodeMethod · 0.45
UPnPMethod · 0.45
runWithInputMethod · 0.45
TestBlockClass · 0.45
mainFunction · 0.45
executeTransactionMethod · 0.45

Calls 1

insertMethod · 0.45

Tested by 10

runWithInputMethod · 0.36
mainFunction · 0.36
executeTransactionMethod · 0.36
TestBlockMethod · 0.36
copyStateFromMethod · 0.36
resetMethod · 0.36
addBlockMethod · 0.36
syncUnclesMethod · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36