From 3b9843f2d33027318d3a2dc881a4000e292c7d6a Mon Sep 17 00:00:00 2001 From: Gunnar Stefansson Date: Tue, 10 Nov 2020 15:08:08 +0000 Subject: [PATCH 1/6] This is just nonsense --- src/alert.cpp | 1 + 1 file changed, 1 insertion(+) 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))); From 8ca1ae86cbb5ed711bd8f82f79318aaa7cd0b125 Mon Sep 17 00:00:00 2001 From: Gunnar Stefansson Date: Tue, 10 Nov 2020 16:12:25 +0000 Subject: [PATCH 2/6] This is just a test --- src/wallet.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wallet.cpp b/src/wallet.cpp index 59383a6c1..267793a13 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -23,6 +23,7 @@ bool bSpendZeroConfChange = true; // // mapWallet // +// junk comment line struct CompareValueOnly { From fdfd1eed73921d2343e9cdda4b1f1d82ba371373 Mon Sep 17 00:00:00 2001 From: Gunnar Stefansson Date: Tue, 10 Nov 2020 16:30:53 +0000 Subject: [PATCH 3/6] this is just nonsense --- src/main.cpp | 1 + src/wallet.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 602bc19a5..06714f455 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2,6 +2,7 @@ // 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 #include "main.h" diff --git a/src/wallet.cpp b/src/wallet.cpp index 267793a13..9adfa8618 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -24,6 +24,7 @@ bool bSpendZeroConfChange = true; // mapWallet // // junk comment line +// junk comment line 2 struct CompareValueOnly { From 7336d866fd74aedf99fd047728154534c34cfed5 Mon Sep 17 00:00:00 2001 From: Gunnar Stefansson Date: Tue, 10 Nov 2020 16:37:20 +0000 Subject: [PATCH 4/6] test 4 --- src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.cpp b/src/main.cpp index 06714f455..6c44dd130 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3,6 +3,7 @@ // 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 #include "main.h" From 0e31962639faca311e35db80d160be27cf1ea21b Mon Sep 17 00:00:00 2001 From: Gunnar Stefansson Date: Tue, 10 Nov 2020 16:48:35 +0000 Subject: [PATCH 5/6] test 5 --- src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.cpp b/src/main.cpp index 6c44dd130..6892c2b08 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4,6 +4,7 @@ // 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" From c5811c96a40651f1ee327c6008b45019b3652376 Mon Sep 17 00:00:00 2001 From: Selph <72403805+Selph@users.noreply.github.com> Date: Tue, 8 Nov 2022 15:12:09 +0000 Subject: [PATCH 6/6] Random100 function added --- src/rpcserver.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 },