Test
This commit is contained in:
@@ -71,6 +71,7 @@ UniValue games_bet(uint64_t txfee,struct CCcontract_info *cp,cJSON *params);
|
|||||||
#define CUSTOM_DISPATCH \
|
#define CUSTOM_DISPATCH \
|
||||||
if ( cp->evalcode == EVAL_GAMES ) \
|
if ( cp->evalcode == EVAL_GAMES ) \
|
||||||
{ \
|
{ \
|
||||||
|
UniValue res; \
|
||||||
if ( strcmp(method,"rng") == 0 ) \
|
if ( strcmp(method,"rng") == 0 ) \
|
||||||
return(games_rng(txfee,cp,params)); \
|
return(games_rng(txfee,cp,params)); \
|
||||||
else if ( strcmp(method,"rngnext") == 0 ) \
|
else if ( strcmp(method,"rngnext") == 0 ) \
|
||||||
@@ -107,9 +108,9 @@ if ( cp->evalcode == EVAL_GAMES ) \
|
|||||||
return(games_bet(txfee,cp,params)); \
|
return(games_bet(txfee,cp,params)); \
|
||||||
else \
|
else \
|
||||||
{ \
|
{ \
|
||||||
result.push_back(Pair("result","error")); \
|
res.push_back(Pair("result","error")); \
|
||||||
result.push_back(Pair("error","invalid gamescc method")); \
|
res.push_back(Pair("error","invalid gamescc method")); \
|
||||||
return(result); \
|
return(res); \
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user