d'oh
This commit is contained in:
@@ -54,7 +54,7 @@ int64_t prices_blockinfo(int32_t height,char *acaddr)
|
|||||||
|
|
||||||
UniValue games_settle(uint64_t txfee,struct CCcontract_info *cp,cJSON *params)
|
UniValue games_settle(uint64_t txfee,struct CCcontract_info *cp,cJSON *params)
|
||||||
{
|
{
|
||||||
UniValue result; char acaddr[64]; CPubKey acpk,mypk,gamespk; int64_t prizefund = 0; int32_t height,nextheight = komodo_nextheight();
|
UniValue result(UniValue::VOBJ); char acaddr[64]; CPubKey acpk,mypk,gamespk; int64_t prizefund = 0; int32_t height,nextheight = komodo_nextheight();
|
||||||
if ( ASSETCHAINS_OVERRIDE_PUBKEY33[0] == 0 )
|
if ( ASSETCHAINS_OVERRIDE_PUBKEY33[0] == 0 )
|
||||||
{
|
{
|
||||||
result.push_back(Pair("result","error"));
|
result.push_back(Pair("result","error"));
|
||||||
@@ -63,16 +63,6 @@ UniValue games_settle(uint64_t txfee,struct CCcontract_info *cp,cJSON *params)
|
|||||||
}
|
}
|
||||||
mypk = pubkey2pk(Mypubkey());
|
mypk = pubkey2pk(Mypubkey());
|
||||||
gamespk = GetUnspendable(cp,0);
|
gamespk = GetUnspendable(cp,0);
|
||||||
//acpk = buf2pk(ASSETCHAINS_OVERRIDE_PUBKEY33);
|
|
||||||
result.push_back(Pair("result","success"));
|
|
||||||
/*if ( params != 0 && cJSON_GetArraySize(params) == 1 )
|
|
||||||
{
|
|
||||||
height = juint(jitem(params,0),0);
|
|
||||||
result.push_back(Pair("height",(int64_t)height));
|
|
||||||
}*/
|
|
||||||
return(result);
|
|
||||||
/*mypk = pubkey2pk(Mypubkey());
|
|
||||||
gamespk = GetUnspendable(cp,0);
|
|
||||||
acpk = buf2pk(ASSETCHAINS_OVERRIDE_PUBKEY33);
|
acpk = buf2pk(ASSETCHAINS_OVERRIDE_PUBKEY33);
|
||||||
Getscriptaddress(acaddr,CScript() << ParseHex(HexStr(acpk)) << OP_CHECKSIG);
|
Getscriptaddress(acaddr,CScript() << ParseHex(HexStr(acpk)) << OP_CHECKSIG);
|
||||||
if ( params != 0 && cJSON_GetArraySize(params) == 1 )
|
if ( params != 0 && cJSON_GetArraySize(params) == 1 )
|
||||||
@@ -101,7 +91,7 @@ UniValue games_settle(uint64_t txfee,struct CCcontract_info *cp,cJSON *params)
|
|||||||
result.push_back(Pair("result","error"));
|
result.push_back(Pair("result","error"));
|
||||||
result.push_back(Pair("error","couldnt parse"));
|
result.push_back(Pair("error","couldnt parse"));
|
||||||
}
|
}
|
||||||
return(result);*/
|
return(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
UniValue games_bet(uint64_t txfee,struct CCcontract_info *cp,cJSON *params)
|
UniValue games_bet(uint64_t txfee,struct CCcontract_info *cp,cJSON *params)
|
||||||
|
|||||||
Reference in New Issue
Block a user