Changeset View
Changeset View
Standalone View
Standalone View
src/policy/policy.h
// Copyright (c) 2009-2010 Satoshi Nakamoto | // Copyright (c) 2009-2010 Satoshi Nakamoto | ||||
// Copyright (c) 2009-2016 The Bitcoin Core developers | // Copyright (c) 2009-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_POLICY_POLICY_H | #ifndef BITCOIN_POLICY_POLICY_H | ||||
#define BITCOIN_POLICY_POLICY_H | #define BITCOIN_POLICY_POLICY_H | ||||
#include "consensus/consensus.h" | #include "consensus/consensus.h" | ||||
#include "script/interpreter.h" | |||||
#include "script/standard.h" | #include "script/standard.h" | ||||
#include <string> | #include <string> | ||||
class CCoinsViewCache; | class CCoinsViewCache; | ||||
class CTransaction; | |||||
/** Default for -blockmaxsize, which controls the maximum size of block the | /** Default for -blockmaxsize, which controls the maximum size of block the | ||||
* mining code will create **/ | * mining code will create **/ | ||||
static const uint64_t DEFAULT_MAX_GENERATED_BLOCK_SIZE = 2 * ONE_MEGABYTE; | static const uint64_t DEFAULT_MAX_GENERATED_BLOCK_SIZE = 2 * ONE_MEGABYTE; | ||||
/** Default for -blockprioritypercentage, define the amount of block space | /** Default for -blockprioritypercentage, define the amount of block space | ||||
* reserved to high priority transactions **/ | * reserved to high priority transactions **/ | ||||
static const uint64_t DEFAULT_BLOCK_PRIORITY_PERCENTAGE = 5; | static const uint64_t DEFAULT_BLOCK_PRIORITY_PERCENTAGE = 5; | ||||
/** Default for -blockmintxfee, which sets the minimum feerate for a transaction | /** Default for -blockmintxfee, which sets the minimum feerate for a transaction | ||||
▲ Show 20 Lines • Show All 69 Lines • Show Last 20 Lines |