playerinfo
This commit is contained in:
@@ -112,11 +112,11 @@ UniValue CClib_method(struct CCcontract_info *cp,char *method,cJSON *params)
|
|||||||
else if ( strcmp(method,"keystrokes") == 0 )
|
else if ( strcmp(method,"keystrokes") == 0 )
|
||||||
return(rogue_keystrokes(txfee,cp,params));
|
return(rogue_keystrokes(txfee,cp,params));
|
||||||
else if ( strcmp(method,"bailout") == 0 )
|
else if ( strcmp(method,"bailout") == 0 )
|
||||||
return(rogue_saveandquit(txfee,cp,params));
|
return(rogue_bailout(txfee,cp,params));
|
||||||
else if ( strcmp(method,"highlander") == 0 )
|
else if ( strcmp(method,"highlander") == 0 )
|
||||||
return(rogue_claimwin(txfee,cp,params));
|
return(rogue_highlander(txfee,cp,params));
|
||||||
else if ( strcmp(method,"playerinfo") == 0 )
|
else if ( strcmp(method,"playerinfo") == 0 )
|
||||||
return(rogue_claimwin(txfee,cp,params));
|
return(rogue_playerinfo(txfee,cp,params));
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
result.push_back(Pair("result","error"));
|
result.push_back(Pair("result","error"));
|
||||||
|
|||||||
@@ -92,14 +92,14 @@ CScript rogue_registeropret(uint256 gametxid,uint256 playertxid)
|
|||||||
return(opret);
|
return(opret);
|
||||||
}
|
}
|
||||||
|
|
||||||
CScript rogue_keystrokesopret(uint256 gametxid,uint256 batontxid,CPubKey pk,std::vector<uint_t>keystrokes)
|
CScript rogue_keystrokesopret(uint256 gametxid,uint256 batontxid,CPubKey pk,std::vector<uint8_t>keystrokes)
|
||||||
{
|
{
|
||||||
CScript opret; uint8_t evalcode = EVAL_ROGUE;
|
CScript opret; uint8_t evalcode = EVAL_ROGUE;
|
||||||
opret << OP_RETURN << E_MARSHAL(ss << evalcode << 'K' << gametxid << batontxid << pk << keystrokes);
|
opret << OP_RETURN << E_MARSHAL(ss << evalcode << 'K' << gametxid << batontxid << pk << keystrokes);
|
||||||
return(opret);
|
return(opret);
|
||||||
}
|
}
|
||||||
|
|
||||||
CScript rogue_highlanderopret(uint256 gametxid,uint256 registertxid,CPubKey pk,std::vector<uint_t>playerdata)
|
CScript rogue_highlanderopret(uint256 gametxid,uint256 registertxid,CPubKey pk,std::vector<uint8_t>playerdata)
|
||||||
{
|
{
|
||||||
CScript opret; uint8_t evalcode = EVAL_ROGUE;
|
CScript opret; uint8_t evalcode = EVAL_ROGUE;
|
||||||
opret << OP_RETURN << E_MARSHAL(ss << evalcode << 'K' << gametxid << registertxid << pk << playerdata);
|
opret << OP_RETURN << E_MARSHAL(ss << evalcode << 'K' << gametxid << registertxid << pk << playerdata);
|
||||||
|
|||||||
Reference in New Issue
Block a user