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

Method waitNext

src/node/interfaces.cpp:928–939  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

926 }
927
928 std::unique_ptr<BlockTemplate> waitNext(BlockWaitOptions options) override
929 {
930 auto new_template = WaitAndCreateNewBlock(chainman(),
931 notifications(),
932 m_node.mempool.get(),
933 m_block_template,
934 /*wait_options=*/options,
935 /*create_options=*/m_create_options,
936 /*interrupt_wait=*/m_interrupt_wait);
937 if (new_template) return std::make_unique<BlockTemplateImpl>(m_create_options, std::move(new_template), m_node);
938 return nullptr;
939 }
940
941 void interruptWait() override
942 {

Callers 5

async_routineMethod · 0.80
TestPackageSelectionMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls 2

WaitAndCreateNewBlockFunction · 0.85
getMethod · 0.45

Tested by 3

TestPackageSelectionMethod · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64