Changeset View
Changeset View
Standalone View
Standalone View
src/pow/aserti32d.h
- This file was added.
// Copyright (c) 2020 The Bitcoin developers | |||||
// Distributed under the MIT software license, see the accompanying | |||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | |||||
#ifndef BITCOIN_POW_ASERTI32D_H | |||||
#define BITCOIN_POW_ASERTI32D_H | |||||
#include <arith_uint256.h> | |||||
#include <cstdint> | |||||
class CBlockHeader; | |||||
class CBlockIndex; | |||||
namespace Consensus { | |||||
struct Params; | |||||
} | |||||
arith_uint256 CalculateASERT(const arith_uint256 refTarget, | |||||
const int64_t nPowTargetSpacing, | |||||
const int64_t nTimeDiff, const int64_t nHeightDiff, | |||||
const arith_uint256 powLimit, | |||||
const int64_t nHalfLife) noexcept; | |||||
uint32_t GetNextASERTWorkRequired(const CBlockIndex *pindexPrev, | |||||
const CBlockHeader *pblock, | |||||
const Consensus::Params ¶ms) noexcept; | |||||
uint32_t | |||||
GetNextASERTWorkRequired(const CBlockIndex *pindexPrev, | |||||
const CBlockHeader *pblock, | |||||
const Consensus::Params ¶ms, | |||||
const CBlockIndex *pindexAnchorBlock) noexcept; | |||||
#endif // BITCOIN_POW_ASERTI32D_H |