This commit is contained in:
@@ -479,6 +479,7 @@ void sudoku_gen(uint8_t key32[32],uint8_t unsolved[9][9],uint32_t srandi)
|
||||
// ./komodod -ac_name=SUDOKU -ac_supply=1000000 -pubkey=<yourpubkey> -addnode=5.9.102.210 -gen -genproclimit=1 -ac_cclib=sudoku -ac_perc=10000000 -ac_reward=100000000 -ac_cc=60000 -ac_script=2ea22c80203d1579313abe7d8ea85f48c65ea66fc512c878c0d0e6f6d54036669de940febf8103120c008203000401cc &
|
||||
// cclib "gen" 17 "1"
|
||||
// 5d13c1ad80daf37215c74809a36720c2ada90bacadb2e10bf0866092ce558432
|
||||
// cclib "txidinfo" 17 \"[5d13c1ad80daf37215c74809a36720c2ada90bacadb2e10bf0866092ce558432]\"
|
||||
|
||||
UniValue sudoku_txidinfo(uint64_t txfee,struct CCcontract_info *cp,cJSON *params)
|
||||
{
|
||||
@@ -486,7 +487,7 @@ UniValue sudoku_txidinfo(uint64_t txfee,struct CCcontract_info *cp,cJSON *params
|
||||
if ( params != 0 )
|
||||
{
|
||||
printf("params.(%s)\n",jprint(params,0));
|
||||
int32_t i,n = cJSON_GetArraySize();
|
||||
cJSON *item; int32_t i,n = cJSON_GetArraySize(params);
|
||||
for (i=0; i<n; i++)
|
||||
{
|
||||
item = jitem(params,i);
|
||||
|
||||
Reference in New Issue
Block a user