| 30 | |
| 31 | |
| 32 | static 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 | |
| 47 | Value luavm_executescript(const Array& params, bool fHelp) { |
| 48 | if (fHelp || params.size() < 2 || params.size() > 5) { |
no test coverage detected