Changeset View
Changeset View
Standalone View
Standalone View
src/parkingpresets.cpp
- This file was added.
// Copyright (c) 2023 The Bitcoin developers | |||||
// Distributed under the MIT software license, see the accompanying | |||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | |||||
#include <parkingpresets.h> | |||||
#include <blockindex.h> | |||||
#include <minerfund.h> | |||||
std::vector<std::shared_ptr<ParkingPreset>> | |||||
GetParkingPresetsForBlock(const Consensus::Params ¶ms, | |||||
const CBlockIndex *pindex, const CBlock &block, | |||||
const Amount &blockFees) { | |||||
return { | |||||
std::make_shared<MinerFundPolicy>(params, pindex, block, blockFees)}; | |||||
} | |||||
bool MinerFundPolicy::operator()() { | |||||
return !CheckMinerFund(m_consensusParams, m_pindex, m_block, m_blockFees, | |||||
MinerFundFlags::POLICY); | |||||
} |