|
|
@ -22,6 +22,7 @@ void RegisterValidationInterface(CValidationInterface* pwalletIn) { |
|
|
|
g_signals.BlockChecked.connect(boost::bind(&CValidationInterface::BlockChecked, 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.ScriptForMining.connect(boost::bind(&CValidationInterface::GetScriptForMining, pwalletIn, _1)); |
|
|
|
g_signals.BlockFound.connect(boost::bind(&CValidationInterface::ResetRequestCount, 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) { |
|
|
|
void UnregisterValidationInterface(CValidationInterface* pwalletIn) { |
|
|
@ -34,6 +35,7 @@ void UnregisterValidationInterface(CValidationInterface* pwalletIn) { |
|
|
|
g_signals.UpdatedTransaction.disconnect(boost::bind(&CValidationInterface::UpdatedTransaction, pwalletIn, _1)); |
|
|
|
g_signals.UpdatedTransaction.disconnect(boost::bind(&CValidationInterface::UpdatedTransaction, pwalletIn, _1)); |
|
|
|
g_signals.SyncTransaction.disconnect(boost::bind(&CValidationInterface::SyncTransaction, pwalletIn, _1, _2, _3)); |
|
|
|
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.UpdatedBlockTip.disconnect(boost::bind(&CValidationInterface::UpdatedBlockTip, pwalletIn, _1, _2, _3)); |
|
|
|
|
|
|
|
g_signals.NewPoWValidBlock.disconnect(boost::bind(&CValidationInterface::NewPoWValidBlock, pwalletIn, _1, _2)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void UnregisterAllValidationInterfaces() { |
|
|
|
void UnregisterAllValidationInterfaces() { |
|
|
@ -46,4 +48,5 @@ void UnregisterAllValidationInterfaces() { |
|
|
|
g_signals.UpdatedTransaction.disconnect_all_slots(); |
|
|
|
g_signals.UpdatedTransaction.disconnect_all_slots(); |
|
|
|
g_signals.SyncTransaction.disconnect_all_slots(); |
|
|
|
g_signals.SyncTransaction.disconnect_all_slots(); |
|
|
|
g_signals.UpdatedBlockTip.disconnect_all_slots(); |
|
|
|
g_signals.UpdatedBlockTip.disconnect_all_slots(); |
|
|
|
|
|
|
|
g_signals.NewPoWValidBlock.disconnect_all_slots(); |
|
|
|
} |
|
|
|
} |
|
|
|