Test
This commit is contained in:
@@ -93,6 +93,7 @@ UniValue games_origsettle(uint64_t txfee,struct CCcontract_info *cp,cJSON *param
|
|||||||
}
|
}
|
||||||
return(result);
|
return(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
UniValue games_settle(uint64_t txfee,struct CCcontract_info *cp,cJSON *params)
|
UniValue games_settle(uint64_t txfee,struct CCcontract_info *cp,cJSON *params)
|
||||||
{
|
{
|
||||||
CMutableTransaction mtx = CreateNewContextualCMutableTransaction(Params().GetConsensus(), komodo_nextheight());
|
CMutableTransaction mtx = CreateNewContextualCMutableTransaction(Params().GetConsensus(), komodo_nextheight());
|
||||||
@@ -106,10 +107,11 @@ 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);
|
acpk = buf2pk(ASSETCHAINS_OVERRIDE_PUBKEY33);
|
||||||
|
result.push_back(Pair("result","success"));
|
||||||
if ( params != 0 && cJSON_GetArraySize(params) == 1 )
|
if ( params != 0 && cJSON_GetArraySize(params) == 1 )
|
||||||
{
|
{
|
||||||
height = juint(jitem(params,0),0);
|
height = juint(jitem(params,0),0);
|
||||||
result.push_back(Pair("height",(int64_t)height));
|
//result.push_back(Pair("height",(int64_t)height));
|
||||||
}
|
}
|
||||||
/*if ( params != 0 && cJSON_GetArraySize(params) == 2 )
|
/*if ( params != 0 && cJSON_GetArraySize(params) == 2 )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user