fix
This commit is contained in:
@@ -974,7 +974,7 @@ std::string DiceBet(uint64_t txfee,char *planstr,uint256 fundingtxid,int64_t bet
|
|||||||
if ( entropytxs < 2 ) {
|
if ( entropytxs < 2 ) {
|
||||||
CCerror = "Your dealer is broke, find a new casino.";
|
CCerror = "Your dealer is broke, find a new casino.";
|
||||||
fprintf(stderr,"%s\n", CCerror.c_str() );
|
fprintf(stderr,"%s\n", CCerror.c_str() );
|
||||||
error = CCerror.c_str();
|
error = (char *)CCerror.c_str();
|
||||||
return("");
|
return("");
|
||||||
}
|
}
|
||||||
if ( myIsutxo_spentinmempool(entropytxid,0) != 0 )
|
if ( myIsutxo_spentinmempool(entropytxid,0) != 0 )
|
||||||
|
|||||||
@@ -6152,7 +6152,7 @@ UniValue dicebet(const UniValue& params, bool fHelp)
|
|||||||
return(result);
|
return(result);
|
||||||
}
|
}
|
||||||
if (amount > 0 && odds > 0) {
|
if (amount > 0 && odds > 0) {
|
||||||
hex = DiceBet(0,name,fundingtxid,amount,odds);
|
hex = DiceBet(0,name,fundingtxid,amount,odds,error);
|
||||||
if ( hex.size() > 0 )
|
if ( hex.size() > 0 )
|
||||||
{
|
{
|
||||||
result.push_back(Pair("result", "success"));
|
result.push_back(Pair("result", "success"));
|
||||||
|
|||||||
Reference in New Issue
Block a user