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

Function create_context

src/test/kernel/test_kernel.cpp:726–737  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

724}
725
726Context create_context(std::shared_ptr<TestKernelNotifications> notifications, ChainType chain_type, std::shared_ptr<TestValidationInterface> validation_interface = nullptr)
727{
728 ContextOptions options{};
729 ChainParams params{chain_type};
730 options.SetChainParams(params);
731 options.SetNotifications(notifications);
732 if (validation_interface) {
733 options.SetValidationInterface(validation_interface);
734 }
735 auto context{Context{options}};
736 return context;
737}
738
739BOOST_AUTO_TEST_CASE(btck_chainman_tests)
740{

Callers 4

BOOST_AUTO_TEST_CASEFunction · 0.85
chainman_reindex_testFunction · 0.85

Calls 3

SetChainParamsMethod · 0.80
SetNotificationsMethod · 0.80

Tested by

no test coverage detected