From 1fb745d8eec83438df5309d97b53704e0384d527 Mon Sep 17 00:00:00 2001 From: "Jonathan \"Duke\" Leto" Date: Wed, 21 Nov 2018 09:37:05 +0100 Subject: [PATCH] Get dice CC compiling again --- src/cc/dice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cc/dice.cpp b/src/cc/dice.cpp index 54fd7e1a2..f621a2dbc 100644 --- a/src/cc/dice.cpp +++ b/src/cc/dice.cpp @@ -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 )