Changeset View
Changeset View
Standalone View
Standalone View
src/miner.cpp
Show First 20 Lines • Show All 556 Lines • ▼ Show 20 Lines | while (mi != mempool.mapTx.get<ancestor_score>().end() || | ||||
nDescendantsUpdated += UpdatePackagesForAdded(ancestors, mapModifiedTx); | nDescendantsUpdated += UpdatePackagesForAdded(ancestors, mapModifiedTx); | ||||
} | } | ||||
} | } | ||||
void BlockAssembler::addPriorityTxs() { | void BlockAssembler::addPriorityTxs() { | ||||
// How much of the block should be dedicated to high-priority transactions, | // How much of the block should be dedicated to high-priority transactions, | ||||
// included regardless of the fees they pay. | // included regardless of the fees they pay. | ||||
uint64_t nBlockPrioritySize = | uint64_t nBlockPrioritySize = | ||||
GetArg("-blockprioritysize", DEFAULT_BLOCK_PRIORITY_SIZE); | GetArg("-blockprioritysize", DEFAULT_BLOCK_PRIORITY_SIZE_PER_MB * | ||||
DEFAULT_MAX_BLOCK_SIZE / ONE_MEGABYTE); | |||||
nBlockPrioritySize = std::min(nMaxGeneratedBlockSize, nBlockPrioritySize); | nBlockPrioritySize = std::min(nMaxGeneratedBlockSize, nBlockPrioritySize); | ||||
if (nBlockPrioritySize == 0) { | if (nBlockPrioritySize == 0) { | ||||
return; | return; | ||||
} | } | ||||
// This vector will be sorted into a priority queue: | // This vector will be sorted into a priority queue: | ||||
std::vector<TxCoinAgePriority> vecPriority; | std::vector<TxCoinAgePriority> vecPriority; | ||||
TxCoinAgePriorityCompare pricomparer; | TxCoinAgePriorityCompare pricomparer; | ||||
▲ Show 20 Lines • Show All 90 Lines • Show Last 20 Lines |