MCPcopy Create free account
hub / github.com/LUX-Core/lux / RegisterValidationInterface

Function RegisterValidationInterface

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

Source from the content-addressed store, hash-verified

13}
14
15void RegisterValidationInterface(CValidationInterface *pwalletIn) {
16 g_signals.UpdatedBlockTip.connect(boost::bind(&CValidationInterface::UpdatedBlockTip, pwalletIn, _1));
17 g_signals.SyncTransaction.connect(boost::bind(&CValidationInterface::SyncTransaction, pwalletIn, _1, _2));
18 g_signals.NotifyTransactionLock.connect(boost::bind(&CValidationInterface::NotifyTransactionLock, pwalletIn, _1));
19 g_signals.UpdatedTransaction.connect(boost::bind(&CValidationInterface::UpdatedTransaction, pwalletIn, _1));
20 g_signals.SetBestChain.connect(boost::bind(&CValidationInterface::SetBestChain, pwalletIn, _1));
21 g_signals.Broadcast.connect(boost::bind(&CValidationInterface::ResendWalletTransactions, pwalletIn));
22 g_signals.BlockChecked.connect(boost::bind(&CValidationInterface::BlockChecked, pwalletIn, _1, _2));
23 g_signals.ScriptForMining.connect(boost::bind(&CValidationInterface::GetScriptForMining, pwalletIn, _1));
24 g_signals.BlockFound.connect(boost::bind(&CValidationInterface::ResetRequestCount, pwalletIn, _1));
25}
26
27void UnregisterValidationInterface(CValidationInterface *pwalletIn) {
28 g_signals.BlockFound.disconnect(boost::bind(&CValidationInterface::ResetRequestCount, pwalletIn, _1));

Callers 3

AppInit2Function · 0.85
submitblockFunction · 0.85
TestingSetupMethod · 0.85

Calls 1

connectMethod · 0.45

Tested by 1

TestingSetupMethod · 0.68