MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / BlockAssembler

Method BlockAssembler

src/node/miner.cpp:100–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100BlockAssembler::BlockAssembler(Chainstate& chainstate,
101 const CTxMemPool* mempool,
102 BlockCreateOptions options)
103 : chainparams{chainstate.m_chainman.GetParams()},
104 m_mempool{options.use_mempool ? mempool : nullptr},
105 m_chainstate{chainstate},
106 m_options{[&] {
107 if (auto result{CheckMiningOptions(options, /*use_argnames=*/false)}; !result) {
108 throw std::runtime_error(util::ErrorString(result).original);
109 }
110 return FlattenMiningOptions(std::move(options));
111 }()}
112{
113}
114
115void BlockAssembler::resetBlock()
116{

Callers

nothing calls this directly

Calls 3

CheckMiningOptionsFunction · 0.85
ErrorStringFunction · 0.85
FlattenMiningOptionsFunction · 0.85

Tested by

no test coverage detected