From 3bb6e2335ea9661ef70cb2afc3b34c1669fc7730 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 2 Aug 2018 04:40:20 -1100 Subject: [PATCH] Test --- src/wallet/rpcwallet.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 07100e53e..295460618 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -5289,7 +5289,13 @@ UniValue dicestatus(const UniValue& params, bool fHelp) result.push_back(Pair("status", "finalized")); result.push_back(Pair("n", (int64_t)winnings)); } - } else result.push_back(Pair("status", "loss")); + } + else + { + if ( params.size() == 3 ) + result.push_back(Pair("status", "loss")); + else result.push_back(Pair("status", "no pending bets")); + } } else result.push_back(Pair("status", "invalid bet txid")); return(result); }