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

Function RegisterValidationInterface

src/validationinterface.cpp:15–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13}
14
15void RegisterValidationInterface(CValidationInterface* pwalletIn) {
16 g_signals.SyncTransaction.connect(boost::bind(&CValidationInterface::SyncTransaction, pwalletIn, _1, _2, _3));
17 g_signals.EraseTransaction.connect(boost::bind(&CValidationInterface::EraseFromWallet, pwalletIn, _1));
18 g_signals.UpdatedTransaction.connect(boost::bind(&CValidationInterface::UpdatedTransaction, pwalletIn, _1));
19 g_signals.SetBestChain.connect(boost::bind(&CValidationInterface::SetBestChain, pwalletIn, _1));
20 g_signals.Inventory.connect(boost::bind(&CValidationInterface::Inventory, pwalletIn, _1));
21 g_signals.Broadcast.connect(boost::bind(&CValidationInterface::ResendWalletTransactions, pwalletIn, _1));
22 g_signals.BlockChecked.connect(boost::bind(&CValidationInterface::BlockChecked, pwalletIn, _1, _2));
23}
24
25void UnregisterValidationInterface(CValidationInterface* pwalletIn) {
26 g_signals.BlockChecked.disconnect(boost::bind(&CValidationInterface::BlockChecked, pwalletIn, _1, _2));

Callers 3

AppInit2Function · 0.85
submitblockFunction · 0.85
TestingSetupMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestingSetupMethod · 0.68