Test
This commit is contained in:
@@ -257,7 +257,7 @@ int64_t AddCClibInputs(struct CCcontract_info *cp,CMutableTransaction &mtx,CPubK
|
|||||||
{
|
{
|
||||||
txid = it->first.txhash;
|
txid = it->first.txhash;
|
||||||
vout = (int32_t)it->first.index;
|
vout = (int32_t)it->first.index;
|
||||||
char str[65]; fprintf(stderr,"%s check %s/v%d %.8f\n",coinaddr,uint256_str(str,txid),vout,(double)it->second.satoshis/COIN);
|
//char str[65]; fprintf(stderr,"%s check %s/v%d %.8f\n",coinaddr,uint256_str(str,txid),vout,(double)it->second.satoshis/COIN);
|
||||||
if ( it->second.satoshis < threshold )
|
if ( it->second.satoshis < threshold )
|
||||||
continue;
|
continue;
|
||||||
// no need to prevent dup
|
// no need to prevent dup
|
||||||
|
|||||||
@@ -529,7 +529,7 @@ UniValue sudoku_generate(uint64_t txfee,struct CCcontract_info *cp,cJSON *params
|
|||||||
change = (inputsum - amount - 2*txfee);
|
change = (inputsum - amount - 2*txfee);
|
||||||
if ( change > txfee )
|
if ( change > txfee )
|
||||||
mtx.vout.push_back(MakeCC1vout(cp->evalcode,change,sudokupk));
|
mtx.vout.push_back(MakeCC1vout(cp->evalcode,change,sudokupk));
|
||||||
CCaddr2set(cp,cp->evalcode,sudokupk,cp->CCpriv,cp->CCaddr);
|
CCaddr2set(cp,cp->evalcode,sudokupk,cp->CCpriv,cp->unspendableCCaddr);
|
||||||
rawtx = FinalizeCCTx(0,cp,mtx,sudokupk,txfee,sudoku_genopret(unsolved));
|
rawtx = FinalizeCCTx(0,cp,mtx,sudokupk,txfee,sudoku_genopret(unsolved));
|
||||||
result.push_back(Pair("hex",rawtx));
|
result.push_back(Pair("hex",rawtx));
|
||||||
} else result.push_back(Pair("error","not enough SUDOKU funds"));
|
} else result.push_back(Pair("error","not enough SUDOKU funds"));
|
||||||
|
|||||||
Reference in New Issue
Block a user