@ -26,7 +26,6 @@ struct MainSignalsInstance {
@@ -26,7 +26,6 @@ struct MainSignalsInstance {
boost : : signals2 : : signal < void ( const std : : shared_ptr < const CBlock > & ) > BlockDisconnected ;
boost : : signals2 : : signal < void ( const CTransactionRef & ) > TransactionRemovedFromMempool ;
boost : : signals2 : : signal < void ( const CBlockLocator & ) > SetBestChain ;
boost : : signals2 : : signal < void ( const uint256 & ) > Inventory ;
boost : : signals2 : : signal < void ( int64_t nBestBlockTime , CConnman * connman ) > Broadcast ;
boost : : signals2 : : signal < void ( const CBlock & , const CValidationState & ) > BlockChecked ;
boost : : signals2 : : signal < void ( const CBlockIndex * , const std : : shared_ptr < const CBlock > & ) > NewPoWValidBlock ;
@ -81,7 +80,6 @@ void RegisterValidationInterface(CValidationInterface* pwalletIn) {
@@ -81,7 +80,6 @@ void RegisterValidationInterface(CValidationInterface* pwalletIn) {
g_signals . m_internals - > BlockDisconnected . connect ( boost : : bind ( & CValidationInterface : : BlockDisconnected , pwalletIn , _1 ) ) ;
g_signals . m_internals - > TransactionRemovedFromMempool . connect ( boost : : bind ( & CValidationInterface : : TransactionRemovedFromMempool , pwalletIn , _1 ) ) ;
g_signals . m_internals - > SetBestChain . connect ( boost : : bind ( & CValidationInterface : : SetBestChain , pwalletIn , _1 ) ) ;
g_signals . m_internals - > Inventory . connect ( boost : : bind ( & CValidationInterface : : Inventory , pwalletIn , _1 ) ) ;
g_signals . m_internals - > Broadcast . connect ( boost : : bind ( & CValidationInterface : : ResendWalletTransactions , pwalletIn , _1 , _2 ) ) ;
g_signals . m_internals - > BlockChecked . connect ( boost : : bind ( & CValidationInterface : : BlockChecked , pwalletIn , _1 , _2 ) ) ;
g_signals . m_internals - > NewPoWValidBlock . connect ( boost : : bind ( & CValidationInterface : : NewPoWValidBlock , pwalletIn , _1 , _2 ) ) ;
@ -90,7 +88,6 @@ void RegisterValidationInterface(CValidationInterface* pwalletIn) {
@@ -90,7 +88,6 @@ void RegisterValidationInterface(CValidationInterface* pwalletIn) {
void UnregisterValidationInterface ( CValidationInterface * pwalletIn ) {
g_signals . m_internals - > BlockChecked . disconnect ( boost : : bind ( & CValidationInterface : : BlockChecked , pwalletIn , _1 , _2 ) ) ;
g_signals . m_internals - > Broadcast . disconnect ( boost : : bind ( & CValidationInterface : : ResendWalletTransactions , pwalletIn , _1 , _2 ) ) ;
g_signals . m_internals - > Inventory . disconnect ( boost : : bind ( & CValidationInterface : : Inventory , pwalletIn , _1 ) ) ;
g_signals . m_internals - > SetBestChain . disconnect ( boost : : bind ( & CValidationInterface : : SetBestChain , pwalletIn , _1 ) ) ;
g_signals . m_internals - > TransactionAddedToMempool . disconnect ( boost : : bind ( & CValidationInterface : : TransactionAddedToMempool , pwalletIn , _1 ) ) ;
g_signals . m_internals - > BlockConnected . disconnect ( boost : : bind ( & CValidationInterface : : BlockConnected , pwalletIn , _1 , _2 , _3 ) ) ;
@ -106,7 +103,6 @@ void UnregisterAllValidationInterfaces() {
@@ -106,7 +103,6 @@ void UnregisterAllValidationInterfaces() {
}
g_signals . m_internals - > BlockChecked . disconnect_all_slots ( ) ;
g_signals . m_internals - > Broadcast . disconnect_all_slots ( ) ;
g_signals . m_internals - > Inventory . disconnect_all_slots ( ) ;
g_signals . m_internals - > SetBestChain . disconnect_all_slots ( ) ;
g_signals . m_internals - > TransactionAddedToMempool . disconnect_all_slots ( ) ;
g_signals . m_internals - > BlockConnected . disconnect_all_slots ( ) ;
@ -172,12 +168,6 @@ void CMainSignals::SetBestChain(const CBlockLocator &locator) {
@@ -172,12 +168,6 @@ void CMainSignals::SetBestChain(const CBlockLocator &locator) {
} ) ;
}
void CMainSignals : : Inventory ( const uint256 & hash ) {
m_internals - > m_schedulerClient . AddToProcessQueue ( [ hash , this ] {
m_internals - > Inventory ( hash ) ;
} ) ;
}
void CMainSignals : : Broadcast ( int64_t nBestBlockTime , CConnman * connman ) {
m_internals - > Broadcast ( nBestBlockTime , connman ) ;
}