Merge branch 'beta' into dev

This commit is contained in:
jl777
2018-09-24 05:49:30 -11:00
committed by GitHub
5 changed files with 30 additions and 6 deletions

View File

@@ -6050,7 +6050,10 @@ UniValue dicebet(const UniValue& params, bool fHelp)
}
if (amount > 0 && odds > 0) {
hex = DiceBet(0,name,fundingtxid,amount,odds);
if ( hex.size() > 0 )
if ( CCerror != "" )
{
ERR_RESULT(CCerror);
} else if ( hex.size() > 0 )
{
result.push_back(Pair("result", "success"));
result.push_back(Pair("hex", hex));