From 4e12f16ccf015f4833d51fa26def91d791c60020 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 31 Jul 2018 21:50:57 -1100 Subject: [PATCH] Test --- 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 07a63ef5d..5e4e1fde3 100644 --- a/src/cc/dice.cpp +++ b/src/cc/dice.cpp @@ -478,7 +478,7 @@ bool DiceValidate(struct CCcontract_info *cp,Eval *eval,const CTransaction &tx) return eval->Invalid("vout[2] scriptPubKey mismatch for win/timeout"); else if ( tx.vout[2].nValue != odds*vinTx.vout[1].nValue ) return eval->Invalid("vout[2] payut mismatch for win/timeout"); - else if ( inputs != output+tx.vout[2].nValue-txfee ) + else if ( inputs != outputs+tx.vout[2].nValue-txfee ) return eval->Invalid("CC funds mismatch for win/timeout"); iswin = (funcid == 'W'); }