Changeset View
Changeset View
Standalone View
Standalone View
src/config.cpp
// Copyright (c) 2017 The Bitcoin developers | // Copyright (c) 2017 The Bitcoin 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. | ||||
#include "config.h" | #include "config.h" | ||||
#include "chainparams.h" | #include "chainparams.h" | ||||
#include "consensus/consensus.h" | #include "consensus/consensus.h" | ||||
#include "defaults.h" | #include "defaults.h" | ||||
#include "globals.h" | #include "globals.h" | ||||
GlobalConfig::GlobalConfig() | GlobalConfig::GlobalConfig() | ||||
: useCashAddr(false), maxFee(DEFAULT_TRANSACTION_MAXFEE) {} | : useCashAddr(false), maxFee(DEFAULT_TRANSACTION_MAXFEE), | ||||
minFeePerKB(DEFAULT_MIN_RELAY_TX_FEE_PER_KB), | |||||
excessUTXOCharge(DEFAULT_UTXO_FEE) {} | |||||
bool GlobalConfig::SetMaxBlockSize(uint64_t maxBlockSize) { | bool GlobalConfig::SetMaxBlockSize(uint64_t maxBlockSize) { | ||||
// Do not allow maxBlockSize to be set below historic 1MB limit | // Do not allow maxBlockSize to be set below historic 1MB limit | ||||
// It cannot be equal either because of the "must be big" UAHF rule. | // It cannot be equal either because of the "must be big" UAHF rule. | ||||
if (maxBlockSize <= LEGACY_MAX_BLOCK_SIZE) { | if (maxBlockSize <= LEGACY_MAX_BLOCK_SIZE) { | ||||
return false; | return false; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 99 Lines • Show Last 20 Lines |