Get dice CC compiling again

This commit is contained in:
Jonathan "Duke" Leto
2018-11-21 09:37:05 +01:00
parent a6689ec6fc
commit 1fb745d8ee

View File

@@ -1579,9 +1579,9 @@ std::string DiceBetFinish(uint8_t &funcid,uint256 &entropyused,int32_t &entropyv
}
CCchange = betTx.vout[0].nValue + betTx.vout[1].nValue;
fundsneeded = txfee + (odds+1)*betTx.vout[1].nValue;
savemtx = mtx;
if ( CCchange >= fundsneeded )
CCchange -= fundsneeded;
savemtx = mtx;
else if ( (inputs= AddDiceInputs(cp,mtx,dicepk,fundsneeded,1,sbits,fundingtxid)) >= fundsneeded )
{
if ( inputs > fundsneeded )