Allocate enough for new game
This commit is contained in:
@@ -565,7 +565,7 @@ UniValue rogue_newgame(uint64_t txfee,struct CCcontract_info *cp,cJSON *params)
|
|||||||
mypk = pubkey2pk(Mypubkey());
|
mypk = pubkey2pk(Mypubkey());
|
||||||
roguepk = GetUnspendable(cp,0);
|
roguepk = GetUnspendable(cp,0);
|
||||||
rogue_univalue(result,"newgame",maxplayers,buyin);
|
rogue_univalue(result,"newgame",maxplayers,buyin);
|
||||||
required = (3*txfee + maxplayers*ROGUE_REGISTRATIONSIZE);
|
required = (3*txfee + maxplayers*(ROGUE_REGISTRATIONSIZE+txfee));
|
||||||
if ( (inputsum= AddCClibInputs(cp,mtx,roguepk,required,16,cp->unspendableCCaddr)) >= required )
|
if ( (inputsum= AddCClibInputs(cp,mtx,roguepk,required,16,cp->unspendableCCaddr)) >= required )
|
||||||
{
|
{
|
||||||
mtx.vout.push_back(MakeCC1vout(cp->evalcode,txfee,roguepk)); // for highlander TCBOO creation
|
mtx.vout.push_back(MakeCC1vout(cp->evalcode,txfee,roguepk)); // for highlander TCBOO creation
|
||||||
|
|||||||
Reference in New Issue
Block a user