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

Method GetDexOperator

src/persistence/dexdb.cpp:126–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126bool CDexDBCache::GetDexOperator(const DexID &id, DexOperatorDetail& detail) {
127 decltype(operator_detail_cache)::KeyType idKey(id);
128 bool result = operator_detail_cache.GetData(idKey, detail);
129 if (result)
130 return result;
131 if (id == MAIN_DEX_ID )
132 return Dex0(detail);
133 return result;
134
135}
136
137bool CDexDBCache::GetDexOperatorByOwner(const CRegID &regid, DexID &idOut, DexOperatorDetail& detail) {
138 decltype(operator_owner_map_cache)::ValueType dexID;

Callers 7

CheckProposalMethod · 0.80
ExecuteProposalMethod · 0.80
GetDexOperatorFunction · 0.80
getdexoperatorFunction · 0.80
GetDexOperatorFunction · 0.80
CheckMethod · 0.80
ExecuteTxMethod · 0.80

Calls 2

Dex0Function · 0.85
GetDataMethod · 0.45

Tested by

no test coverage detected