MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / ParseKeyPrefixType

Function ParseKeyPrefixType

src/persistence/dbconf.h:192–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190 };
191
192 inline PrefixType ParseKeyPrefixType(const std::string &keyPrefix) {
193 auto it = gPrefixNameMap.find(keyPrefix);
194 if (it != gPrefixNameMap.end())
195 return it->second;
196 return EMPTY;
197 };
198
199 template<typename KeyElement>
200 std::string GenDbKey(PrefixType keyPrefixType, const KeyElement &keyElement) {

Callers 3

ExecuteMethod · 0.85
dumpdbFunction · 0.85
getblockundoFunction · 0.85

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected