2017-11-09 19:34:51 +01:00
|
|
|
/*
|
|
|
|
|
* This file is part of the Flowee project
|
|
|
|
|
* Copyright (C) 2009-2010 Satoshi Nakamoto
|
|
|
|
|
* Copyright (C) 2009-2015 The Bitcoin Core developers
|
2021-06-20 22:44:44 +02:00
|
|
|
* Copyright (C) 2019-2020 Tom Zander <tom@flowee.org>
|
2017-11-09 19:34:51 +01:00
|
|
|
*
|
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
2015-02-11 11:58:11 +01:00
|
|
|
|
2018-01-16 10:47:52 +00:00
|
|
|
#ifndef FLOWEE_CONSENSUS_PARAMS_H
|
|
|
|
|
#define FLOWEE_CONSENSUS_PARAMS_H
|
2015-02-11 11:58:11 +01:00
|
|
|
|
|
|
|
|
#include "uint256.h"
|
|
|
|
|
|
|
|
|
|
namespace Consensus {
|
2016-02-15 05:13:27 +01:00
|
|
|
|
2015-02-11 11:58:11 +01:00
|
|
|
/**
|
|
|
|
|
* Parameters that influence chain consensus.
|
|
|
|
|
*/
|
|
|
|
|
struct Params {
|
|
|
|
|
uint256 hashGenesisBlock;
|
|
|
|
|
int nSubsidyHalvingInterval;
|
2015-11-02 16:41:55 -05:00
|
|
|
/** Block height and hash at which BIP34 becomes active */
|
|
|
|
|
int BIP34Height;
|
2019-10-11 10:33:40 +02:00
|
|
|
int BIP65Height; // CHECKLOCKTIMEVERIFY
|
|
|
|
|
int BIP66Height; // DERSIG
|
|
|
|
|
int BIP68Height; // sequence locks
|
2016-02-15 05:13:27 +01:00
|
|
|
/**
|
|
|
|
|
* Minimum blocks including miner confirmation of the total of 2016 blocks in a retargetting period,
|
|
|
|
|
* (nPowTargetTimespan / nPowTargetSpacing) which is also used for BIP9 deployments.
|
|
|
|
|
* Examples: 1916 for 95%, 1512 for testchains.
|
|
|
|
|
*/
|
|
|
|
|
uint32_t nRuleChangeActivationThreshold;
|
|
|
|
|
uint32_t nMinerConfirmationWindow;
|
2015-02-11 11:58:11 +01:00
|
|
|
/** Proof of work parameters */
|
2015-03-25 15:00:32 -04:00
|
|
|
uint256 powLimit;
|
2015-02-11 11:58:11 +01:00
|
|
|
bool fPowAllowMinDifficultyBlocks;
|
2015-10-19 08:25:29 -04:00
|
|
|
bool fPowNoRetargeting;
|
2015-02-11 11:58:11 +01:00
|
|
|
int64_t nPowTargetSpacing;
|
|
|
|
|
int64_t nPowTargetTimespan;
|
2020-08-10 12:12:08 +02:00
|
|
|
int64_t nASERTHalfLife;
|
2015-02-11 11:58:11 +01:00
|
|
|
int64_t DifficultyAdjustmentInterval() const { return nPowTargetTimespan / nPowTargetSpacing; }
|
2020-08-10 12:12:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
// BCH Protocol upgrades.
|
|
|
|
|
int hf201708Height; // EDA
|
|
|
|
|
int hf201711Height; // cw144 DAA got enabled here
|
2018-11-02 22:28:50 +01:00
|
|
|
int hf201805Height;
|
2018-11-08 13:57:22 +01:00
|
|
|
int hf201811Height;
|
2019-05-15 20:44:47 +02:00
|
|
|
int hf201905Height;
|
2020-09-26 14:00:32 -04:00
|
|
|
int hf201911Height;
|
|
|
|
|
int hf202005Height;
|
2020-11-16 15:04:07 +01:00
|
|
|
int hf202011Height; // asert DAA
|
2026-05-04 22:54:58 +02:00
|
|
|
int hf202205Height;
|
2025-04-12 12:11:01 +02:00
|
|
|
int hf202305Height;
|
2026-05-04 22:54:58 +02:00
|
|
|
int hf202405Height;
|
|
|
|
|
int hf202505Height;
|
|
|
|
|
int64_t hf202605ActivationTime;
|
2015-02-11 11:58:11 +01:00
|
|
|
};
|
|
|
|
|
} // namespace Consensus
|
|
|
|
|
|
2018-01-16 10:47:52 +00:00
|
|
|
#endif
|