From 7e9ea7e9eed6df2c8724b17209378e3aa763e821 Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Sun, 15 Dec 2019 20:14:58 -0500 Subject: [PATCH] Tweak hush-cli stop message and help --- src/rpc/server.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/rpc/server.cpp b/src/rpc/server.cpp index fc186c67f..a554f77cf 100644 --- a/src/rpc/server.cpp +++ b/src/rpc/server.cpp @@ -1,6 +1,6 @@ // Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin Core developers -// Copyright (c) 2019 The Hush developers +// Copyright (c) 2019 The Hush developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. @@ -271,7 +271,7 @@ UniValue stop(const UniValue& params, bool fHelp, const CPubKey& mypk) if (fHelp || params.size() > 1) throw runtime_error( "stop\n" - "\nStop Komodo server."); + "\nStop Hush server."); #ifdef ENABLE_WALLET GenerateBitcoins(false, pwalletMain, 0); @@ -281,7 +281,12 @@ UniValue stop(const UniValue& params, bool fHelp, const CPubKey& mypk) // Shutdown will take long enough that the response should get back StartShutdown(); - sprintf(buf,"%s server stopping",ASSETCHAINS_SYMBOL[0] != 0 ? ASSETCHAINS_SYMBOL : "Komodo"); + + if ((strncmp(ASSETCHAINS_SYMBOL, "HUSH3", 5) == 0) ) { + sprintf(buf,"Hush server stopping..."); + } else { + sprintf(buf,"%s server stopping...",ASSETCHAINS_SYMBOL); + } return buf; }