Changeset View
Changeset View
Standalone View
Standalone View
src/miner.h
Show All 18 Lines | |||||
class CChainParams; | class CChainParams; | ||||
class Config; | class Config; | ||||
class CReserveKey; | class CReserveKey; | ||||
class CScript; | class CScript; | ||||
class CWallet; | class CWallet; | ||||
static const bool DEFAULT_PRINTPRIORITY = false; | static const bool DEFAULT_PRINTPRIORITY = false; | ||||
struct CBlockTemplateEntry { | |||||
CTransactionRef tx; | |||||
Amount fees; | |||||
int64_t sigOpCount; | |||||
CBlockTemplateEntry(CTransactionRef tx, Amount fees, int64_t sigOpCount) | |||||
: tx(tx), fees(fees), sigOpCount(sigOpCount){}; | |||||
}; | |||||
struct CBlockTemplate { | struct CBlockTemplate { | ||||
CBlock block; | CBlock block; | ||||
std::vector<Amount> vTxFees; | |||||
std::vector<int64_t> vTxSigOpsCount; | std::vector<CBlockTemplateEntry> entries; | ||||
}; | }; | ||||
// Container for tracking updates to ancestor feerate as we include (parent) | // Container for tracking updates to ancestor feerate as we include (parent) | ||||
// transactions in a block | // transactions in a block | ||||
struct CTxMemPoolModifiedEntry { | struct CTxMemPoolModifiedEntry { | ||||
CTxMemPoolModifiedEntry(CTxMemPool::txiter entry) { | CTxMemPoolModifiedEntry(CTxMemPool::txiter entry) { | ||||
iter = entry; | iter = entry; | ||||
nSizeWithAncestors = entry->GetSizeWithAncestors(); | nSizeWithAncestors = entry->GetSizeWithAncestors(); | ||||
▲ Show 20 Lines • Show All 190 Lines • Show Last 20 Lines |