@@ -12,39 +12,42 @@ CMainSignals& GetMainSignals()
1212 return g_signals;
1313}
1414
15- void RegisterValidationInterface (CValidationInterface* pwalletIn) {
16- g_signals.AcceptedBlockHeader .connect (boost::bind (&CValidationInterface::AcceptedBlockHeader, pwalletIn, _1));
17- g_signals.NotifyHeaderTip .connect (boost::bind (&CValidationInterface::NotifyHeaderTip, pwalletIn, _1, _2));
18- g_signals.UpdatedBlockTip .connect (boost::bind (&CValidationInterface::UpdatedBlockTip, pwalletIn, _1, _2, _3));
19- g_signals.SyncTransaction .connect (boost::bind (&CValidationInterface::SyncTransaction, pwalletIn, _1, _2, _3));
20- g_signals.NotifyTransactionLock .connect (boost::bind (&CValidationInterface::NotifyTransactionLock, pwalletIn, _1));
21- g_signals.UpdatedTransaction .connect (boost::bind (&CValidationInterface::UpdatedTransaction, pwalletIn, _1));
22- g_signals.SetBestChain .connect (boost::bind (&CValidationInterface::SetBestChain, pwalletIn, _1));
23- g_signals.Inventory .connect (boost::bind (&CValidationInterface::Inventory, pwalletIn, _1));
24- g_signals.Broadcast .connect (boost::bind (&CValidationInterface::ResendWalletTransactions, pwalletIn, _1, _2));
25- g_signals.BlockChecked .connect (boost::bind (&CValidationInterface::BlockChecked, pwalletIn, _1, _2));
26- g_signals.ScriptForMining .connect (boost::bind (&CValidationInterface::GetScriptForMining, pwalletIn, _1));
27- g_signals.BlockFound .connect (boost::bind (&CValidationInterface::ResetRequestCount, pwalletIn, _1));
28- g_signals.NewPoWValidBlock .connect (boost::bind (&CValidationInterface::NewPoWValidBlock, pwalletIn, _1, _2));
15+ void RegisterValidationInterface (CValidationInterface* pwalletIn)
16+ {
17+ g_signals.AcceptedBlockHeader .connect (boost::bind ( &CValidationInterface::AcceptedBlockHeader, pwalletIn, _1) );
18+ g_signals.NotifyHeaderTip .connect (boost::bind ( &CValidationInterface::NotifyHeaderTip, pwalletIn, _1, _2) );
19+ g_signals.UpdatedBlockTip .connect (boost::bind ( &CValidationInterface::UpdatedBlockTip, pwalletIn, _1, _2, _3) );
20+ g_signals.SyncTransaction .connect (boost::bind ( &CValidationInterface::SyncTransaction, pwalletIn, _1, _2, _3) );
21+ g_signals.NotifyTransactionLock .connect (boost::bind ( &CValidationInterface::NotifyTransactionLock, pwalletIn, _1) );
22+ g_signals.UpdatedTransaction .connect (boost::bind ( &CValidationInterface::UpdatedTransaction, pwalletIn, _1) );
23+ g_signals.SetBestChain .connect (boost::bind ( &CValidationInterface::SetBestChain, pwalletIn, _1) );
24+ g_signals.Inventory .connect (boost::bind ( &CValidationInterface::Inventory, pwalletIn, _1) );
25+ g_signals.Broadcast .connect (boost::bind ( &CValidationInterface::ResendWalletTransactions, pwalletIn, _1, _2) );
26+ g_signals.BlockChecked .connect (boost::bind ( &CValidationInterface::BlockChecked, pwalletIn, _1, _2) );
27+ g_signals.ScriptForMining .connect (boost::bind ( &CValidationInterface::GetScriptForMining, pwalletIn, _1) );
28+ g_signals.BlockFound .connect (boost::bind ( &CValidationInterface::ResetRequestCount, pwalletIn, _1) );
29+ g_signals.NewPoWValidBlock .connect (boost::bind ( &CValidationInterface::NewPoWValidBlock, pwalletIn, _1, _2) );
2930}
3031
31- void UnregisterValidationInterface (CValidationInterface* pwalletIn) {
32- g_signals.BlockFound .disconnect (boost::bind (&CValidationInterface::ResetRequestCount, pwalletIn, _1));
33- g_signals.ScriptForMining .disconnect (boost::bind (&CValidationInterface::GetScriptForMining, pwalletIn, _1));
34- g_signals.BlockChecked .disconnect (boost::bind (&CValidationInterface::BlockChecked, pwalletIn, _1, _2));
35- g_signals.Broadcast .disconnect (boost::bind (&CValidationInterface::ResendWalletTransactions, pwalletIn, _1, _2));
36- g_signals.Inventory .disconnect (boost::bind (&CValidationInterface::Inventory, pwalletIn, _1));
37- g_signals.SetBestChain .disconnect (boost::bind (&CValidationInterface::SetBestChain, pwalletIn, _1));
38- g_signals.UpdatedTransaction .disconnect (boost::bind (&CValidationInterface::UpdatedTransaction, pwalletIn, _1));
39- g_signals.NotifyTransactionLock .disconnect (boost::bind (&CValidationInterface::NotifyTransactionLock, pwalletIn, _1));
40- g_signals.SyncTransaction .disconnect (boost::bind (&CValidationInterface::SyncTransaction, pwalletIn, _1, _2, _3));
41- g_signals.UpdatedBlockTip .disconnect (boost::bind (&CValidationInterface::UpdatedBlockTip, pwalletIn, _1, _2, _3));
42- g_signals.NewPoWValidBlock .disconnect (boost::bind (&CValidationInterface::NewPoWValidBlock, pwalletIn, _1, _2));
43- g_signals.NotifyHeaderTip .disconnect (boost::bind (&CValidationInterface::NotifyHeaderTip, pwalletIn, _1, _2));
44- g_signals.AcceptedBlockHeader .disconnect (boost::bind (&CValidationInterface::AcceptedBlockHeader, pwalletIn, _1));
32+ void UnregisterValidationInterface (CValidationInterface* pwalletIn)
33+ {
34+ g_signals.BlockFound .disconnect (boost::bind ( &CValidationInterface::ResetRequestCount, pwalletIn, _1) );
35+ g_signals.ScriptForMining .disconnect (boost::bind ( &CValidationInterface::GetScriptForMining, pwalletIn, _1) );
36+ g_signals.BlockChecked .disconnect (boost::bind ( &CValidationInterface::BlockChecked, pwalletIn, _1, _2) );
37+ g_signals.Broadcast .disconnect (boost::bind ( &CValidationInterface::ResendWalletTransactions, pwalletIn, _1, _2) );
38+ g_signals.Inventory .disconnect (boost::bind ( &CValidationInterface::Inventory, pwalletIn, _1) );
39+ g_signals.SetBestChain .disconnect (boost::bind ( &CValidationInterface::SetBestChain, pwalletIn, _1) );
40+ g_signals.UpdatedTransaction .disconnect (boost::bind ( &CValidationInterface::UpdatedTransaction, pwalletIn, _1) );
41+ g_signals.NotifyTransactionLock .disconnect (boost::bind ( &CValidationInterface::NotifyTransactionLock, pwalletIn, _1) );
42+ g_signals.SyncTransaction .disconnect (boost::bind ( &CValidationInterface::SyncTransaction, pwalletIn, _1, _2, _3) );
43+ g_signals.UpdatedBlockTip .disconnect (boost::bind ( &CValidationInterface::UpdatedBlockTip, pwalletIn, _1, _2, _3) );
44+ g_signals.NewPoWValidBlock .disconnect (boost::bind ( &CValidationInterface::NewPoWValidBlock, pwalletIn, _1, _2) );
45+ g_signals.NotifyHeaderTip .disconnect (boost::bind ( &CValidationInterface::NotifyHeaderTip, pwalletIn, _1, _2) );
46+ g_signals.AcceptedBlockHeader .disconnect (boost::bind ( &CValidationInterface::AcceptedBlockHeader, pwalletIn, _1) );
4547}
4648
47- void UnregisterAllValidationInterfaces () {
49+ void UnregisterAllValidationInterfaces ()
50+ {
4851 g_signals.BlockFound .disconnect_all_slots ();
4952 g_signals.ScriptForMining .disconnect_all_slots ();
5053 g_signals.BlockChecked .disconnect_all_slots ();
0 commit comments