Update accumulatorcheckpoints.json.h.test
This commit is contained in:
@@ -2,20 +2,59 @@
|
|||||||
// Distributed under the MIT software license, see the accompanying
|
// Distributed under the MIT software license, see the accompanying
|
||||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||||
|
|
||||||
#ifndef Agrarian_ACCUMULATORCHECKPOINTS_H
|
#ifndef Gentarium_ACCUMULATORCHECKPOINTS_JSON_H
|
||||||
#define Agrarian_ACCUMULATORCHECKPOINTS_H
|
#define Gentarium_ACCUMULATORCHECKPOINTS_JSON_H
|
||||||
|
|
||||||
#include <libzerocoin/bignum.h>
|
#include <string>
|
||||||
#include <univalue/include/univalue.h>
|
std::string GetMainCheckpoints() {
|
||||||
|
std::string strMainCheckpoints = "[\n"
|
||||||
namespace AccumulatorCheckpoints
|
" {\n"
|
||||||
{
|
" \"height\": 0,\n"
|
||||||
typedef std::map<libzerocoin::CoinDenomination, CBigNum> Checkpoint;
|
" \"1\": \"0\",\n"
|
||||||
extern std::map<int, Checkpoint> mapCheckpoints;
|
" \"5\": \"0\",\n"
|
||||||
|
" \"10\": \"0\",\n"
|
||||||
UniValue read_json(const std::string& jsondata);
|
" \"50\": \"0\",\n"
|
||||||
bool LoadCheckpoints(const std::string& strNetwork);
|
" \"100\": \"0\",\n"
|
||||||
Checkpoint GetClosestCheckpoint(const int& nHeight, int& nHeightCheckpoint);
|
" \"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
|
||||||
Reference in New Issue
Block a user