Update accumulatorcheckpoints.json.h.test

This commit is contained in:
2024-10-19 20:47:04 -07:00
committed by GitHub
parent f378021408
commit ff8676f0f1
+53 -14
View File
@@ -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 <libzerocoin/bignum.h>
#include <univalue/include/univalue.h>
namespace AccumulatorCheckpoints
{
typedef std::map<libzerocoin::CoinDenomination, CBigNum> Checkpoint;
extern std::map<int, Checkpoint> mapCheckpoints;
UniValue read_json(const std::string& jsondata);
bool LoadCheckpoints(const std::string& strNetwork);
Checkpoint GetClosestCheckpoint(const int& nHeight, int& nHeightCheckpoint);
#include <string>
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