2015-06-25 12:28:31 +02:00
|
|
|
// Copyright (c) 2015 The Dogecoin Core developers
|
|
|
|
// Distributed under the MIT software license, see the accompanying
|
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
2017-08-13 14:31:12 +02:00
|
|
|
#include "amount.h"
|
2017-04-18 20:15:10 +02:00
|
|
|
#include "chain.h"
|
2015-06-25 12:28:31 +02:00
|
|
|
#include "chainparams.h"
|
|
|
|
|
2017-09-24 16:56:19 +02:00
|
|
|
bool AllowDigishieldMinDifficultyForBlock(const CBlockIndex* pindexLast, const CBlockHeader *pblock, const Consensus::Params& params);
|
2015-06-25 12:28:31 +02:00
|
|
|
CAmount GetDogecoinBlockSubsidy(int nHeight, const Consensus::Params& consensusParams, uint256 prevHash);
|
2017-04-18 20:15:10 +02:00
|
|
|
unsigned int CalculateDogecoinNextWorkRequired(const CBlockIndex* pindexLast, int64_t nLastRetargetTime, const Consensus::Params& params);
|
2017-08-13 14:31:12 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Check proof-of-work of a block header, taking auxpow into account.
|
|
|
|
* @param block The block header.
|
|
|
|
* @param params Consensus parameters.
|
|
|
|
* @return True iff the PoW is correct.
|
|
|
|
*/
|
|
|
|
bool CheckAuxPowProofOfWork(const CBlockHeader& block, const Consensus::Params& params);
|
2018-01-07 23:56:53 +01:00
|
|
|
|
|
|
|
CAmount GetDogecoinMinRelayFee(const CTransaction& tx, unsigned int nBytes, bool fAllowFree);
|
|
|
|
CAmount GetDogecoinDustFee(const std::vector<CTxOut> &vout, CFeeRate &baseFeeRate);
|