Files

74 lines
2.3 KiB
C++
Raw Permalink Normal View History

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/>.
*/
2018-01-16 10:47:52 +00:00
#ifndef FLOWEE_CONSENSUS_PARAMS_H
#define FLOWEE_CONSENSUS_PARAMS_H
#include "uint256.h"
namespace Consensus {
2016-02-15 05:13:27 +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;
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;
/** Proof of work parameters */
uint256 powLimit;
bool fPowAllowMinDifficultyBlocks;
bool fPowNoRetargeting;
int64_t nPowTargetSpacing;
int64_t nPowTargetTimespan;
2020-08-10 12:12:08 +02:00
int64_t nASERTHalfLife;
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;
int hf201911Height;
int hf202005Height;
2020-11-16 15:04:07 +01:00
int hf202011Height; // asert DAA
int hf202205Height;
2025-04-12 12:11:01 +02:00
int hf202305Height;
int hf202405Height;
int hf202505Height;
int64_t hf202605ActivationTime;
};
} // namespace Consensus
2018-01-16 10:47:52 +00:00
#endif