Dont roundup
This commit is contained in:
@@ -1279,14 +1279,12 @@ UniValue rogue_finishgame(uint64_t txfee,struct CCcontract_info *cp,cJSON *param
|
|||||||
}
|
}
|
||||||
cashout += numplayers * buyin;
|
cashout += numplayers * buyin;
|
||||||
}
|
}
|
||||||
if ( cashout < txfee )
|
if ( cashout > 0 )
|
||||||
cashout = txfee;
|
|
||||||
if ( cashout >= txfee )
|
|
||||||
{
|
{
|
||||||
if ( (inputsum= AddCClibInputs(cp,mtx,roguepk,cashout,16,cp->unspendableCCaddr)) > (uint64_t)P.gold*mult )
|
if ( (inputsum= AddCClibInputs(cp,mtx,roguepk,cashout,16,cp->unspendableCCaddr)) > (uint64_t)P.gold*mult )
|
||||||
CCchange = (inputsum - cashout);
|
CCchange = (inputsum - cashout);
|
||||||
mtx.vout.push_back(CTxOut(cashout,CScript() << ParseHex(HexStr(mypk)) << OP_CHECKSIG));
|
|
||||||
}
|
}
|
||||||
|
mtx.vout.push_back(CTxOut(cashout,CScript() << ParseHex(HexStr(mypk)) << OP_CHECKSIG));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
mtx.vout.push_back(MakeCC1vout(cp->evalcode,CCchange + (batonvalue-3*txfee),roguepk));
|
mtx.vout.push_back(MakeCC1vout(cp->evalcode,CCchange + (batonvalue-3*txfee),roguepk));
|
||||||
|
|||||||
Reference in New Issue
Block a user