Use mypk
This commit is contained in:
@@ -73,7 +73,7 @@ std::string FinalizeCCTx(uint64_t CCmask,struct CCcontract_info *cp,CMutableTran
|
||||
unspendablepk = GetUnspendable(cp, unspendablepriv);
|
||||
GetCCaddress(cp, unspendable, unspendablepk);
|
||||
othercond = MakeCCcond1(cp->evalcode, unspendablepk);
|
||||
|
||||
printf("evalcode.%d (%s)\n",cp->evalcode,unspendable);
|
||||
// tokens support:
|
||||
|
||||
// to spend from dual-eval mypk vout
|
||||
|
||||
@@ -530,7 +530,7 @@ UniValue sudoku_generate(uint64_t txfee,struct CCcontract_info *cp,cJSON *params
|
||||
if ( change > txfee )
|
||||
mtx.vout.push_back(MakeCC1vout(cp->evalcode,change,sudokupk));
|
||||
CCaddr2set(cp,cp->evalcode,sudokupk,cp->CCpriv,cp->unspendableCCaddr);
|
||||
rawtx = FinalizeCCTx(0,cp,mtx,sudokupk,txfee,sudoku_genopret(unsolved));
|
||||
rawtx = FinalizeCCTx(0,cp,mtx,pubkey2pk(Mypubkey()),txfee,sudoku_genopret(unsolved));
|
||||
result.push_back(Pair("hex",rawtx));
|
||||
} else result.push_back(Pair("error","not enough SUDOKU funds"));
|
||||
return(result);
|
||||
|
||||
Reference in New Issue
Block a user