@ -49,8 +49,10 @@ void CMainSignals::UnregisterBackgroundSignalScheduler() {
}
}
void CMainSignals : : FlushBackgroundCallbacks ( ) {
void CMainSignals : : FlushBackgroundCallbacks ( ) {
if ( m_internals ) {
m_internals - > m_schedulerClient . EmptyQueue ( ) ;
m_internals - > m_schedulerClient . EmptyQueue ( ) ;
}
}
}
void CMainSignals : : RegisterWithMempoolSignals ( CTxMemPool & pool ) {
void CMainSignals : : RegisterWithMempoolSignals ( CTxMemPool & pool ) {
pool . NotifyEntryRemoved . connect ( boost : : bind ( & CMainSignals : : MempoolEntryRemoved , this , _1 , _2 ) ) ;
pool . NotifyEntryRemoved . connect ( boost : : bind ( & CMainSignals : : MempoolEntryRemoved , this , _1 , _2 ) ) ;
@ -92,6 +94,9 @@ void UnregisterValidationInterface(CValidationInterface* pwalletIn) {
}
}
void UnregisterAllValidationInterfaces ( ) {
void UnregisterAllValidationInterfaces ( ) {
if ( ! g_signals . m_internals ) {
return ;
}
g_signals . m_internals - > BlockChecked . disconnect_all_slots ( ) ;
g_signals . m_internals - > BlockChecked . disconnect_all_slots ( ) ;
g_signals . m_internals - > Broadcast . disconnect_all_slots ( ) ;
g_signals . m_internals - > Broadcast . disconnect_all_slots ( ) ;
g_signals . m_internals - > Inventory . disconnect_all_slots ( ) ;
g_signals . m_internals - > Inventory . disconnect_all_slots ( ) ;