MCPcopy Create free account
hub / github.com/ElementsProject/elements / BlockAssembler

Method BlockAssembler

src/node/miner.cpp:78–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78BlockAssembler::BlockAssembler(CChainState& chainstate, const CTxMemPool& mempool, const CChainParams& params, const Options& options)
79 : chainparams(params),
80 m_mempool(mempool),
81 m_chainstate(chainstate)
82{
83 blockMinFeeRate = options.blockMinFeeRate;
84 // Limit weight to between 4K and MAX_BLOCK_WEIGHT-4K for sanity:
85 nBlockMaxWeight = std::max<size_t>(4000, std::min<size_t>(MAX_BLOCK_WEIGHT - 4000, options.nBlockMaxWeight));
86}
87
88static BlockAssembler::Options DefaultOptions()
89{

Callers

nothing calls this directly

Calls 1

DefaultOptionsFunction · 0.85

Tested by

no test coverage detected