From eeadf551bce28112a6b6fe033331df3376999333 Mon Sep 17 00:00:00 2001 From: pacificao Date: Sat, 19 Oct 2024 17:15:33 -0700 Subject: [PATCH] Update accumulatorcheckpoints.json.h --- src/zagr/accumulatorcheckpoints.json.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/zagr/accumulatorcheckpoints.json.h diff --git a/src/zagr/accumulatorcheckpoints.json.h b/src/zagr/accumulatorcheckpoints.json.h new file mode 100644 index 00000000..f03d81f3 --- /dev/null +++ b/src/zagr/accumulatorcheckpoints.json.h @@ -0,0 +1,21 @@ +// Copyright (c) 2018 The PIVX developers +// 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 + +#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); +} + +#endif //Agrarian_ACCUMULATORCHECKPOINTS_H \ No newline at end of file