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,39 +12,42 @@ CMainSignals& GetMainSignals()
return g_signals;
}
void RegisterValidationInterface(CValidationInterface* pwalletIn) {
g_signals.AcceptedBlockHeader.connect(boost::bind(&CValidationInterface::AcceptedBlockHeader, pwalletIn, _1));
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.SyncTransaction.connect(boost::bind(&CValidationInterface::SyncTransaction, pwalletIn, _1, _2, _3));
g_signals.NotifyTransactionLock.connect(boost::bind(&CValidationInterface::NotifyTransactionLock, pwalletIn, _1));
g_signals.UpdatedTransaction.connect(boost::bind(&CValidationInterface::UpdatedTransaction, pwalletIn, _1));
g_signals.SetBestChain.connect(boost::bind(&CValidationInterface::SetBestChain, pwalletIn, _1));
g_signals.Inventory.connect(boost::bind(&CValidationInterface::Inventory, pwalletIn, _1));
g_signals.Broadcast.connect(boost::bind(&CValidationInterface::ResendWalletTransactions, pwalletIn, _1, _2));
g_signals.BlockChecked.connect(boost::bind(&CValidationInterface::BlockChecked, pwalletIn, _1, _2));
g_signals.ScriptForMining.connect(boost::bind(&CValidationInterface::GetScriptForMining, pwalletIn, _1));
g_signals.BlockFound.connect(boost::bind(&CValidationInterface::ResetRequestCount, pwalletIn, _1));
g_signals.NewPoWValidBlock.connect(boost::bind(&CValidationInterface::NewPoWValidBlock, pwalletIn, _1, _2));
void RegisterValidationInterface(CValidationInterface* pwalletIn)
{
g_signals.AcceptedBlockHeader.connect(boost::bind( &CValidationInterface::AcceptedBlockHeader, pwalletIn, _1) );
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.SyncTransaction.connect(boost::bind( &CValidationInterface::SyncTransaction, pwalletIn, _1, _2, _3) );
g_signals.NotifyTransactionLock.connect(boost::bind( &CValidationInterface::NotifyTransactionLock, pwalletIn, _1) );
g_signals.UpdatedTransaction.connect(boost::bind( &CValidationInterface::UpdatedTransaction, pwalletIn, _1) );
g_signals.SetBestChain.connect(boost::bind( &CValidationInterface::SetBestChain, pwalletIn, _1) );
g_signals.Inventory.connect(boost::bind( &CValidationInterface::Inventory, pwalletIn, _1) );
g_signals.Broadcast.connect(boost::bind( &CValidationInterface::ResendWalletTransactions, pwalletIn, _1, _2) );
g_signals.BlockChecked.connect(boost::bind( &CValidationInterface::BlockChecked, pwalletIn, _1, _2) );
g_signals.ScriptForMining.connect(boost::bind( &CValidationInterface::GetScriptForMining, pwalletIn, _1) );
g_signals.BlockFound.connect(boost::bind( &CValidationInterface::ResetRequestCount, pwalletIn, _1) );
g_signals.NewPoWValidBlock.connect(boost::bind( &CValidationInterface::NewPoWValidBlock, pwalletIn, _1, _2) );
}
void UnregisterValidationInterface(CValidationInterface* pwalletIn) {
g_signals.BlockFound.disconnect(boost::bind(&CValidationInterface::ResetRequestCount, 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.Broadcast.disconnect(boost::bind(&CValidationInterface::ResendWalletTransactions, pwalletIn, _1, _2));
g_signals.Inventory.disconnect(boost::bind(&CValidationInterface::Inventory, pwalletIn, _1));
g_signals.SetBestChain.disconnect(boost::bind(&CValidationInterface::SetBestChain, pwalletIn, _1));
g_signals.UpdatedTransaction.disconnect(boost::bind(&CValidationInterface::UpdatedTransaction, pwalletIn, _1));
g_signals.NotifyTransactionLock.disconnect(boost::bind(&CValidationInterface::NotifyTransactionLock, pwalletIn, _1));
g_signals.SyncTransaction.disconnect(boost::bind(&CValidationInterface::SyncTransaction, pwalletIn, _1, _2, _3));
g_signals.UpdatedBlockTip.disconnect(boost::bind(&CValidationInterface::UpdatedBlockTip, pwalletIn, _1, _2, _3));
g_signals.NewPoWValidBlock.disconnect(boost::bind(&CValidationInterface::NewPoWValidBlock, pwalletIn, _1, _2));
g_signals.NotifyHeaderTip.disconnect(boost::bind(&CValidationInterface::NotifyHeaderTip, pwalletIn, _1, _2));
g_signals.AcceptedBlockHeader.disconnect(boost::bind(&CValidationInterface::AcceptedBlockHeader, pwalletIn, _1));
void UnregisterValidationInterface(CValidationInterface* pwalletIn)
{
g_signals.BlockFound.disconnect(boost::bind( &CValidationInterface::ResetRequestCount, 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.Broadcast.disconnect(boost::bind( &CValidationInterface::ResendWalletTransactions, pwalletIn, _1, _2) );
g_signals.Inventory.disconnect(boost::bind( &CValidationInterface::Inventory, pwalletIn, _1) );
g_signals.SetBestChain.disconnect(boost::bind( &CValidationInterface::SetBestChain, pwalletIn, _1) );
g_signals.UpdatedTransaction.disconnect(boost::bind( &CValidationInterface::UpdatedTransaction, pwalletIn, _1) );
g_signals.NotifyTransactionLock.disconnect(boost::bind( &CValidationInterface::NotifyTransactionLock, pwalletIn, _1) );
g_signals.SyncTransaction.disconnect(boost::bind( &CValidationInterface::SyncTransaction, pwalletIn, _1, _2, _3) );
g_signals.UpdatedBlockTip.disconnect(boost::bind( &CValidationInterface::UpdatedBlockTip, pwalletIn, _1, _2, _3) );
g_signals.NewPoWValidBlock.disconnect(boost::bind( &CValidationInterface::NewPoWValidBlock, pwalletIn, _1, _2) );
g_signals.NotifyHeaderTip.disconnect(boost::bind( &CValidationInterface::NotifyHeaderTip, pwalletIn, _1, _2) );
g_signals.AcceptedBlockHeader.disconnect(boost::bind( &CValidationInterface::AcceptedBlockHeader, pwalletIn, _1) );
}
void UnregisterAllValidationInterfaces() {
void UnregisterAllValidationInterfaces()
{
g_signals.BlockFound.disconnect_all_slots();
g_signals.ScriptForMining.disconnect_all_slots();
g_signals.BlockChecked.disconnect_all_slots();