c81d7632e9
Introduces 1 COIN/kb fees, rounded up to the next 1 COIN. Disable free transactions Dust outputs incur a 1 COIN additional fee Add unit tests for fee calculation Update existing unit tests with higher transaction values so that transactions are still standard
22 lines
1,002 B
C++
22 lines
1,002 B
C++
// 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.
|
|
|
|
#include "amount.h"
|
|
#include "chain.h"
|
|
#include "chainparams.h"
|
|
|
|
bool AllowDigishieldMinDifficultyForBlock(const CBlockIndex* pindexLast, const CBlockHeader *pblock, const Consensus::Params& params);
|
|
CAmount GetDogecoinBlockSubsidy(int nHeight, const Consensus::Params& consensusParams, uint256 prevHash);
|
|
unsigned int CalculateDogecoinNextWorkRequired(const CBlockIndex* pindexLast, int64_t nLastRetargetTime, const Consensus::Params& params);
|
|
|
|
/**
|
|
* 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);
|
|
|
|
int64_t GetDogecoinDustFee(const std::vector<CTxOut> &vout, CFeeRate &baseFeeRate);
|