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

Method RegisterValidationInterface

src/validationinterface.cpp:119–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119void ValidationSignals::RegisterValidationInterface(CValidationInterface* callbacks)
120{
121 // Create a shared_ptr with a no-op deleter - CValidationInterface lifecycle
122 // is managed by the caller.
123 RegisterSharedValidationInterface({callbacks, [](CValidationInterface*){}});
124}
125
126void ValidationSignals::UnregisterSharedValidationInterface(std::shared_ptr<CValidationInterface> callbacks)
127{

Callers 8

AppInitMainFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
cmpctblock.cppFile · 0.80
ProcessBlockFunction · 0.80
InitMethod · 0.80

Calls

no outgoing calls

Tested by 3

BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64
ProcessBlockFunction · 0.64