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

Function FindKeyId

src/rpc/rpcvm.cpp:32–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30
31
32static bool FindKeyId(CAccountDBCache *pAccountView, string const &addr, CKeyID &keyId) {
33 // first, try to parse regId
34 CRegID regId(addr);
35 if (!regId.IsEmpty()) {
36 keyId = regId.GetKeyId(*pAccountView);
37 if (!keyId.IsEmpty()) {
38 return true;
39 }
40 }
41
42 // parse keyId from addr
43 keyId = CKeyID(addr);
44 return !keyId.IsEmpty();
45}
46
47Value luavm_executescript(const Array& params, bool fHelp) {
48 if (fHelp || params.size() < 2 || params.size() > 5) {

Callers 1

luavm_executescriptFunction · 0.85

Calls 3

CKeyIDClass · 0.50
IsEmptyMethod · 0.45
GetKeyIdMethod · 0.45

Tested by

no test coverage detected