From 377e885bd43c436b5449c098699ad7464c4d1b1c Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 27 Nov 2018 05:04:14 -1100 Subject: [PATCH] Fixes --- src/cc/dice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cc/dice.cpp b/src/cc/dice.cpp index 0cc646d79..a434a407a 100644 --- a/src/cc/dice.cpp +++ b/src/cc/dice.cpp @@ -1617,7 +1617,7 @@ std::string DiceBetFinish(uint8_t &funcid,uint256 &entropyused,int32_t &entropyv hentropy = DiceHashEntropy(entropy,mtx.vin[0].prevout.hash,mtx.vin[0].prevout.n,1); else { - if ( fundingpk != scriptPubKey && scriptPubKey != betTx.vout[2].scriptPubKey ) + if ( scriptPubKey != betTx.vout[2].scriptPubKey ) { CCerror = strprintf("can only finish your own bettxid\n"); fprintf(stderr,"%s\n", CCerror.c_str() ); @@ -1719,7 +1719,7 @@ double DiceStatus(uint64_t txfee,char *planstr,uint256 fundingtxid,uint256 bettx GetCCaddress(cp,coinaddr,dicepk); if ( bettxid == zeroid ) // scan { - if ( fundingpk != scriptPubKey ) + if ( fundingpk != mypk ) { CCerror = "Diceinit error in status, non-dealer must provide bettxid"; fprintf(stderr,"%s\n", CCerror.c_str() );