From c3cf367ce667898d0d83f449b6e089c4bc886ed3 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 27 Aug 2018 20:11:06 -1100 Subject: [PATCH] Return -1 if can't find spenttx --- 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 2e4d8d23e..b28683ad5 100644 --- a/src/cc/dice.cpp +++ b/src/cc/dice.cpp @@ -1164,7 +1164,7 @@ double DiceStatus(uint64_t txfee,char *planstr,uint256 fundingtxid,uint256 bettx } CCerror = "couldnt find bettx or spenttx %s\n",uint256_str(str,spenttxid); fprintf(stderr,"%s\n", CCerror.c_str()); - return(0.); + return(-1.); } else if ( scriptPubKey == fundingPubKey ) res = DiceBetFinish(&result,txfee,planstr,fundingtxid,bettxid,1);