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

Function RegisterValidationInterface

src/validationinterface.cpp:75–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75void RegisterValidationInterface(CValidationInterface* pwalletIn) {
76 g_signals.m_internals->UpdatedBlockTip.connect(boost::bind(&CValidationInterface::UpdatedBlockTip, pwalletIn, _1, _2, _3));
77 g_signals.m_internals->TransactionAddedToMempool.connect(boost::bind(&CValidationInterface::TransactionAddedToMempool, pwalletIn, _1));
78 g_signals.m_internals->BlockConnected.connect(boost::bind(&CValidationInterface::BlockConnected, pwalletIn, _1, _2, _3));
79 g_signals.m_internals->BlockDisconnected.connect(boost::bind(&CValidationInterface::BlockDisconnected, pwalletIn, _1));
80 g_signals.m_internals->TransactionRemovedFromMempool.connect(boost::bind(&CValidationInterface::TransactionRemovedFromMempool, pwalletIn, _1));
81 g_signals.m_internals->ChainStateFlushed.connect(boost::bind(&CValidationInterface::ChainStateFlushed, pwalletIn, _1));
82 g_signals.m_internals->Broadcast.connect(boost::bind(&CValidationInterface::ResendWalletTransactions, pwalletIn, _1, _2));
83 g_signals.m_internals->BlockChecked.connect(boost::bind(&CValidationInterface::BlockChecked, pwalletIn, _1, _2));
84 g_signals.m_internals->NewPoWValidBlock.connect(boost::bind(&CValidationInterface::NewPoWValidBlock, pwalletIn, _1, _2));
85}
86
87void UnregisterValidationInterface(CValidationInterface* pwalletIn) {
88 g_signals.m_internals->BlockChecked.disconnect(boost::bind(&CValidationInterface::BlockChecked, pwalletIn, _1, _2));

Callers 6

AppInitMainFunction · 0.85
CreateWalletFromFileMethod · 0.85
WalletTestingSetupMethod · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
StartMethod · 0.85
submitblockFunction · 0.85

Calls

no outgoing calls

Tested by 2

WalletTestingSetupMethod · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68