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

Method submitSolution

src/node/interfaces.cpp:920–926  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

918 }
919
920 bool submitSolution(uint32_t version, uint32_t timestamp, uint32_t nonce, CTransactionRef coinbase) override
921 {
922 AddMerkleRootAndCoinbase(m_block_template->block, std::move(coinbase), version, timestamp, nonce);
923 std::string reason;
924 std::string debug;
925 return SubmitBlock(chainman(), std::make_shared<const CBlock>(m_block_template->block), /*new_block=*/nullptr, reason, debug);
926 }
927
928 std::unique_ptr<BlockTemplate> waitNext(BlockWaitOptions options) override
929 {

Callers 2

async_routineMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls 2

AddMerkleRootAndCoinbaseFunction · 0.85
SubmitBlockFunction · 0.85

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64