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

Function CheckAccountRegId

src/rpc/rpcdex.cpp:942–952  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

940
941
942void 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
954Value submitdexoperatorregtx(const Array& params, bool fHelp){
955

Callers 1

submitdexoperatorregtxFunction · 0.85

Calls 5

JSONRPCErrorFunction · 0.85
IsMatureMethod · 0.80
HeightMethod · 0.80
ToDebugStringMethod · 0.80
GetAccountMethod · 0.45

Tested by

no test coverage detected