MCPcopy Create free account
hub / github.com/Bitcoin-ABC/bitcoin-abc / RegisterSharedValidationInterface

Function RegisterSharedValidationInterface

src/validationinterface.cpp:135–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135void RegisterSharedValidationInterface(
136 std::shared_ptr<CValidationInterface> callbacks) {
137 // Each connection captures the shared_ptr to ensure that each callback is
138 // executed before the subscriber is destroyed. For more details see #18338.
139 g_signals.m_internals->Register(std::move(callbacks));
140}
141
142void RegisterValidationInterface(CValidationInterface *callbacks) {
143 // Create a shared_ptr with a no-op deleter - CValidationInterface lifecycle

Callers 8

mainFunction · 0.85
BOOST_FIXTURE_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_FIXTURE_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
submitblockFunction · 0.85

Calls 1

RegisterMethod · 0.80

Tested by 4

BOOST_FIXTURE_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_FIXTURE_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68