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

Function MineBlock

src/test/util/mining.cpp:78–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78COutPoint MineBlock(const NodeContext& node, const node::BlockCreateOptions& assembler_options)
79{
80 auto block = PrepareBlock(node, assembler_options);
81 auto valid = MineBlock(node, block);
82 assert(!valid.IsNull());
83 return valid;
84}
85
86struct BlockValidationStateCatcher : public CValidationInterface {
87 const uint256 m_hash;

Callers 8

FUZZ_TARGETFunction · 0.85
ResetChainmanFunction · 0.85
initialize_tx_poolFunction · 0.85
initialize_tx_poolFunction · 0.85
ResetChainmanAndMempoolFunction · 0.85
ResetChainmanFunction · 0.85
generatetoaddressFunction · 0.85
AssembleBlockFunction · 0.85

Calls 6

PrepareBlockFunction · 0.85
CheckProofOfWorkFunction · 0.85
ProcessBlockFunction · 0.85
ParamsClass · 0.50
IsNullMethod · 0.45
GetHashMethod · 0.45

Tested by

no test coverage detected