From ff8676f0f139c40c590c737fd9021e4665bec889 Mon Sep 17 00:00:00 2001 From: pacificao Date: Sat, 19 Oct 2024 20:47:04 -0700 Subject: [PATCH] Update accumulatorcheckpoints.json.h.test --- src/zagr/accumulatorcheckpoints.json.h.test | 67 ++++++++++++++++----- 1 file changed, 53 insertions(+), 14 deletions(-) diff --git a/src/zagr/accumulatorcheckpoints.json.h.test b/src/zagr/accumulatorcheckpoints.json.h.test index 52f6050e..534f8927 100644 --- a/src/zagr/accumulatorcheckpoints.json.h.test +++ b/src/zagr/accumulatorcheckpoints.json.h.test @@ -2,20 +2,59 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. -#ifndef Agrarian_ACCUMULATORCHECKPOINTS_H -#define Agrarian_ACCUMULATORCHECKPOINTS_H +#ifndef Gentarium_ACCUMULATORCHECKPOINTS_JSON_H +#define Gentarium_ACCUMULATORCHECKPOINTS_JSON_H -#include -#include - -namespace AccumulatorCheckpoints -{ - typedef std::map Checkpoint; - extern std::map mapCheckpoints; - - UniValue read_json(const std::string& jsondata); - bool LoadCheckpoints(const std::string& strNetwork); - Checkpoint GetClosestCheckpoint(const int& nHeight, int& nHeightCheckpoint); +#include +std::string GetMainCheckpoints() { + std::string strMainCheckpoints = "[\n" + " {\n" + " \"height\": 0,\n" + " \"1\": \"0\",\n" + " \"5\": \"0\",\n" + " \"10\": \"0\",\n" + " \"50\": \"0\",\n" + " \"100\": \"0\",\n" + " \"500\": \"0\",\n" + " \"1000\": \"0\",\n" + " \"5000\": \"0\"\n" + " }\n" + "]"; + return strMainCheckpoints; } -#endif //Agrarian_ACCUMULATORCHECKPOINTS_H +std::string GetTestCheckpoints() { + std::string strTestCheckpoints = "[\n" + " {\n" + " \"height\": 0,\n" + " \"1\": \"0\",\n" + " \"5\": \"0\",\n" + " \"10\": \"0\",\n" + " \"50\": \"0\",\n" + " \"100\": \"0\",\n" + " \"500\": \"0\",\n" + " \"1000\": \"0\",\n" + " \"5000\": \"0\"\n" + " }\n" + "]"; + return strTestCheckpoints; +} + +std::string GetRegTestCheckpoints() { + std::string strRegTestCheckpoints = "[\n" + " {\n" + " \"height\": 0,\n" + " \"1\": \"0\",\n" + " \"5\": \"0\",\n" + " \"10\": \"0\",\n" + " \"50\": \"0\",\n" + " \"100\": \"0\",\n" + " \"500\": \"0\",\n" + " \"1000\": \"0\",\n" + " \"5000\": \"0\"\n" + " }\n" + "]"; + return strRegTestCheckpoints; +} + +#endif //Gentarium_ACCUMULATORCHECKPOINTS_JSON_H \ No newline at end of file