From e09099a178423db57d936a6fbd02cf862b1c97ba Mon Sep 17 00:00:00 2001 From: blackjok3r Date: Sun, 28 Oct 2018 16:26:56 +0800 Subject: [PATCH] fix dice status error message after mempool entopy is invalidated --- src/cc/dice.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/cc/dice.cpp b/src/cc/dice.cpp index 3a2d3129c..d1b207ce0 100644 --- a/src/cc/dice.cpp +++ b/src/cc/dice.cpp @@ -1104,9 +1104,7 @@ std::string DiceBetFinish(int32_t *resultp,uint64_t txfee,char *planstr,uint256 } } *resultp = -1; - CCerror = "couldnt find bettx or entropytx"; - fprintf(stderr,"%s\n", CCerror.c_str() ); - return(""); + return("couldnt find bettx or entropytx"); } double DiceStatus(uint64_t txfee,char *planstr,uint256 fundingtxid,uint256 bettxid,std::string &error) @@ -1137,6 +1135,9 @@ double DiceStatus(uint64_t txfee,char *planstr,uint256 fundingtxid,uint256 bettx { mySendrawtransaction(res); n++; + } else + { + error = res; } } }