Successful staking on Sapling wit Crypto Conditions

This commit is contained in:
miketout
2018-10-05 21:09:09 -07:00
parent 185b2d4f2f
commit 95c5c69bab
4 changed files with 37 additions and 7 deletions

View File

@@ -240,6 +240,13 @@ UniValue help(const UniValue& params, bool fHelp)
extern char ASSETCHAINS_SYMBOL[KOMODO_ASSETCHAIN_MAXLEN];
#ifdef ENABLE_WALLET
void GenerateBitcoins(bool b, CWallet *pw, int t);
#else
void GenerateBitcoins(bool b, CWallet *pw);
#endif
UniValue stop(const UniValue& params, bool fHelp)
{
char buf[64];
@@ -248,6 +255,13 @@ UniValue stop(const UniValue& params, bool fHelp)
throw runtime_error(
"stop\n"
"\nStop Komodo server.");
#ifdef ENABLE_WALLET
GenerateBitcoins(false, pwalletMain, 0);
#else
GenerateBitcoins(false, 0);
#endif
// Shutdown will take long enough that the response should get back
StartShutdown();
sprintf(buf,"%s Komodo server stopping",ASSETCHAINS_SYMBOL);