MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / UnregisterValidationInterface

Function UnregisterValidationInterface

src/validationinterface.cpp:87–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87void UnregisterValidationInterface(CValidationInterface* pwalletIn) {
88 g_signals.m_internals->BlockChecked.disconnect(boost::bind(&CValidationInterface::BlockChecked, pwalletIn, _1, _2));
89 g_signals.m_internals->Broadcast.disconnect(boost::bind(&CValidationInterface::ResendWalletTransactions, pwalletIn, _1, _2));
90 g_signals.m_internals->ChainStateFlushed.disconnect(boost::bind(&CValidationInterface::ChainStateFlushed, pwalletIn, _1));
91 g_signals.m_internals->TransactionAddedToMempool.disconnect(boost::bind(&CValidationInterface::TransactionAddedToMempool, pwalletIn, _1));
92 g_signals.m_internals->BlockConnected.disconnect(boost::bind(&CValidationInterface::BlockConnected, pwalletIn, _1, _2, _3));
93 g_signals.m_internals->BlockDisconnected.disconnect(boost::bind(&CValidationInterface::BlockDisconnected, pwalletIn, _1));
94 g_signals.m_internals->TransactionRemovedFromMempool.disconnect(boost::bind(&CValidationInterface::TransactionRemovedFromMempool, pwalletIn, _1));
95 g_signals.m_internals->UpdatedBlockTip.disconnect(boost::bind(&CValidationInterface::UpdatedBlockTip, pwalletIn, _1, _2, _3));
96 g_signals.m_internals->NewPoWValidBlock.disconnect(boost::bind(&CValidationInterface::NewPoWValidBlock, pwalletIn, _1, _2));
97}
98
99void UnregisterAllValidationInterfaces() {
100 if (!g_signals.m_internals) {

Callers 6

ShutdownFunction · 0.85
unloadwalletFunction · 0.85
~WalletTestingSetupMethod · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
StopMethod · 0.85
submitblockFunction · 0.85

Calls 1

disconnectMethod · 0.45

Tested by 2

~WalletTestingSetupMethod · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68