diff --git a/src/alert.cpp b/src/alert.cpp index e3718a2c8..db437871a 100644 --- a/src/alert.cpp +++ b/src/alert.cpp @@ -115,6 +115,7 @@ bool CAlert::Cancels(const CAlert& alert) const bool CAlert::AppliesTo(int nVersion, std::string strSubVerIn) const { // TODO: rework for client-version-embedded-in-strSubVer ? + // junk comment return (IsInEffect() && nMinVer <= nVersion && nVersion <= nMaxVer && (setSubVer.empty() || setSubVer.count(strSubVerIn))); diff --git a/src/main.cpp b/src/main.cpp index 83e3b449f..9ac8c56c9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2,6 +2,9 @@ // Copyright (c) 2009-2014 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. +// junk comment line 3 +// junk comment line 4 +// junk comment line 5 #include "main.h" diff --git a/src/rpcserver.cpp b/src/rpcserver.cpp index 126f814f4..f56016f05 100644 --- a/src/rpcserver.cpp +++ b/src/rpcserver.cpp @@ -213,6 +213,15 @@ Value stop(const Array& params, bool fHelp) return "Smileycoin server stopping"; } +Value random100(const Array& params, bool fHelp) +{ + if (fHelp || params.size() > 1) + throw runtime_error( + "random100\n" + "\nGives a random number from 1-100"); + int rando = rand() % 100 + 1; + return rando; +} // @@ -227,6 +236,7 @@ static const CRPCCommand vRPCCommands[] = { "getinfo", &getinfo, true, false, false }, /* uses wallet if enabled */ { "help", &help, true, true, false }, { "stop", &stop, true, true, false }, + { "random100", &random100, true, true, false }, /* P2P networking */ { "getnetworkinfo", &getnetworkinfo, true, false, false }, diff --git a/src/wallet.cpp b/src/wallet.cpp index df5e80211..28b865705 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -24,6 +24,8 @@ bool bSpendZeroConfChange = true; // // mapWallet // +// junk comment line +// junk comment line 2 struct CompareValueOnly {