| 25 | } |
| 26 | |
| 27 | void UnregisterValidationInterface(CValidationInterface *pwalletIn) { |
| 28 | g_signals.BlockFound.disconnect(boost::bind(&CValidationInterface::ResetRequestCount, pwalletIn, _1)); |
| 29 | g_signals.ScriptForMining.disconnect(boost::bind(&CValidationInterface::GetScriptForMining, pwalletIn, _1)); |
| 30 | g_signals.BlockChecked.disconnect(boost::bind(&CValidationInterface::BlockChecked, pwalletIn, _1, _2)); |
| 31 | g_signals.Broadcast.disconnect(boost::bind(&CValidationInterface::ResendWalletTransactions, pwalletIn)); |
| 32 | g_signals.SetBestChain.disconnect(boost::bind(&CValidationInterface::SetBestChain, pwalletIn, _1)); |
| 33 | g_signals.UpdatedTransaction.disconnect(boost::bind(&CValidationInterface::UpdatedTransaction, pwalletIn, _1)); |
| 34 | g_signals.NotifyTransactionLock.disconnect( |
| 35 | boost::bind(&CValidationInterface::NotifyTransactionLock, pwalletIn, _1)); |
| 36 | g_signals.SyncTransaction.disconnect(boost::bind(&CValidationInterface::SyncTransaction, pwalletIn, _1, _2)); |
| 37 | g_signals.UpdatedBlockTip.disconnect(boost::bind(&CValidationInterface::UpdatedBlockTip, pwalletIn, _1)); |
| 38 | } |
| 39 | |
| 40 | void UnregisterAllValidationInterfaces() { |
| 41 | g_signals.BlockFound.disconnect_all_slots(); |
no test coverage detected