Changeset View
Changeset View
Standalone View
Standalone View
src/miner.h
Show First 20 Lines • Show All 162 Lines • ▼ Show 20 Lines | private: | ||||
const Config *config; | const Config *config; | ||||
const CTxMemPool *mempool; | const CTxMemPool *mempool; | ||||
// Variables used for addPriorityTxs | // Variables used for addPriorityTxs | ||||
int lastFewTxs; | int lastFewTxs; | ||||
public: | public: | ||||
BlockAssembler(const Config &_config, const CTxMemPool &mempool); | struct Options { | ||||
Options(); | |||||
size_t nBlockMaxSize; | |||||
CFeeRate blockMinFeeRate; | |||||
}; | |||||
BlockAssembler(const Config &config, const CTxMemPool &mempool); | |||||
BlockAssembler(const Config &config, const CTxMemPool &mempool, | |||||
const Options &options); | |||||
/** Construct a new block template with coinbase to scriptPubKeyIn */ | /** Construct a new block template with coinbase to scriptPubKeyIn */ | ||||
std::unique_ptr<CBlockTemplate> | std::unique_ptr<CBlockTemplate> | ||||
CreateNewBlock(const CScript &scriptPubKeyIn); | CreateNewBlock(const CScript &scriptPubKeyIn); | ||||
uint64_t GetMaxGeneratedBlockSize() const { return nMaxGeneratedBlockSize; } | uint64_t GetMaxGeneratedBlockSize() const { return nMaxGeneratedBlockSize; } | ||||
private: | private: | ||||
// utility functions | // utility functions | ||||
▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines |