formatting fix. Will probably need to revert for this PR

This commit is contained in:
Paul 2018-06-30 14:50:54 -05:00
parent 6a0df48370
commit ca10558866

View File

@ -12,7 +12,8 @@ CMainSignals& GetMainSignals()
return g_signals; return g_signals;
} }
void RegisterValidationInterface(CValidationInterface* pwalletIn) { void RegisterValidationInterface(CValidationInterface* pwalletIn)
{
g_signals.AcceptedBlockHeader.connect(boost::bind( &CValidationInterface::AcceptedBlockHeader, pwalletIn, _1) ); g_signals.AcceptedBlockHeader.connect(boost::bind( &CValidationInterface::AcceptedBlockHeader, pwalletIn, _1) );
g_signals.NotifyHeaderTip.connect(boost::bind( &CValidationInterface::NotifyHeaderTip, pwalletIn, _1, _2) ); g_signals.NotifyHeaderTip.connect(boost::bind( &CValidationInterface::NotifyHeaderTip, pwalletIn, _1, _2) );
g_signals.UpdatedBlockTip.connect(boost::bind( &CValidationInterface::UpdatedBlockTip, pwalletIn, _1, _2, _3) ); g_signals.UpdatedBlockTip.connect(boost::bind( &CValidationInterface::UpdatedBlockTip, pwalletIn, _1, _2, _3) );
@ -28,7 +29,8 @@ void RegisterValidationInterface(CValidationInterface* pwalletIn) {
g_signals.NewPoWValidBlock.connect(boost::bind( &CValidationInterface::NewPoWValidBlock, pwalletIn, _1, _2) ); g_signals.NewPoWValidBlock.connect(boost::bind( &CValidationInterface::NewPoWValidBlock, pwalletIn, _1, _2) );
} }
void UnregisterValidationInterface(CValidationInterface* pwalletIn) { void UnregisterValidationInterface(CValidationInterface* pwalletIn)
{
g_signals.BlockFound.disconnect(boost::bind( &CValidationInterface::ResetRequestCount, pwalletIn, _1) ); g_signals.BlockFound.disconnect(boost::bind( &CValidationInterface::ResetRequestCount, pwalletIn, _1) );
g_signals.ScriptForMining.disconnect(boost::bind( &CValidationInterface::GetScriptForMining, pwalletIn, _1) ); g_signals.ScriptForMining.disconnect(boost::bind( &CValidationInterface::GetScriptForMining, pwalletIn, _1) );
g_signals.BlockChecked.disconnect(boost::bind( &CValidationInterface::BlockChecked, pwalletIn, _1, _2) ); g_signals.BlockChecked.disconnect(boost::bind( &CValidationInterface::BlockChecked, pwalletIn, _1, _2) );
@ -44,7 +46,8 @@ void UnregisterValidationInterface(CValidationInterface* pwalletIn) {
g_signals.AcceptedBlockHeader.disconnect(boost::bind( &CValidationInterface::AcceptedBlockHeader, pwalletIn, _1) ); g_signals.AcceptedBlockHeader.disconnect(boost::bind( &CValidationInterface::AcceptedBlockHeader, pwalletIn, _1) );
} }
void UnregisterAllValidationInterfaces() { void UnregisterAllValidationInterfaces()
{
g_signals.BlockFound.disconnect_all_slots(); g_signals.BlockFound.disconnect_all_slots();
g_signals.ScriptForMining.disconnect_all_slots(); g_signals.ScriptForMining.disconnect_all_slots();
g_signals.BlockChecked.disconnect_all_slots(); g_signals.BlockChecked.disconnect_all_slots();