| 940 | |
| 941 | |
| 942 | void CheckAccountRegId(const CUserID uid , const string fieldName){ |
| 943 | |
| 944 | if(!uid.is<CRegID>() || !uid.get<CRegID>().IsMature(chainActive.Height())){ |
| 945 | throw JSONRPCError(RPC_INVALID_PARAMS, strprintf("%s must be a matured regid!", fieldName)); |
| 946 | } |
| 947 | CAccount account; |
| 948 | |
| 949 | if(!pCdMan->pAccountCache->GetAccount(uid, account)) |
| 950 | throw JSONRPCError(RPC_INVALID_PARAMS, strprintf("the account of %s doest not exist, uid=%s", |
| 951 | fieldName, uid.ToDebugString())); |
| 952 | } |
| 953 | |
| 954 | Value submitdexoperatorregtx(const Array& params, bool fHelp){ |
| 955 |
no test coverage detected