|
|
@ -13,6 +13,7 @@ CMainSignals& GetMainSignals() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void RegisterValidationInterface(CValidationInterface* pwalletIn) { |
|
|
|
void RegisterValidationInterface(CValidationInterface* pwalletIn) { |
|
|
|
|
|
|
|
g_signals.UpdatedBlockTip.connect(boost::bind(&CValidationInterface::UpdatedBlockTip, pwalletIn, _1)); |
|
|
|
g_signals.SyncTransaction.connect(boost::bind(&CValidationInterface::SyncTransaction, pwalletIn, _1, _2)); |
|
|
|
g_signals.SyncTransaction.connect(boost::bind(&CValidationInterface::SyncTransaction, pwalletIn, _1, _2)); |
|
|
|
g_signals.UpdatedTransaction.connect(boost::bind(&CValidationInterface::UpdatedTransaction, pwalletIn, _1)); |
|
|
|
g_signals.UpdatedTransaction.connect(boost::bind(&CValidationInterface::UpdatedTransaction, pwalletIn, _1)); |
|
|
|
g_signals.SetBestChain.connect(boost::bind(&CValidationInterface::SetBestChain, pwalletIn, _1)); |
|
|
|
g_signals.SetBestChain.connect(boost::bind(&CValidationInterface::SetBestChain, pwalletIn, _1)); |
|
|
@ -32,6 +33,7 @@ void UnregisterValidationInterface(CValidationInterface* pwalletIn) { |
|
|
|
g_signals.SetBestChain.disconnect(boost::bind(&CValidationInterface::SetBestChain, pwalletIn, _1)); |
|
|
|
g_signals.SetBestChain.disconnect(boost::bind(&CValidationInterface::SetBestChain, pwalletIn, _1)); |
|
|
|
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)); |
|
|
|
g_signals.SyncTransaction.disconnect(boost::bind(&CValidationInterface::SyncTransaction, pwalletIn, _1, _2)); |
|
|
|
|
|
|
|
g_signals.UpdatedBlockTip.disconnect(boost::bind(&CValidationInterface::UpdatedBlockTip, pwalletIn, _1)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void UnregisterAllValidationInterfaces() { |
|
|
|
void UnregisterAllValidationInterfaces() { |
|
|
@ -43,6 +45,8 @@ void UnregisterAllValidationInterfaces() { |
|
|
|
g_signals.SetBestChain.disconnect_all_slots(); |
|
|
|
g_signals.SetBestChain.disconnect_all_slots(); |
|
|
|
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.UpdatedTransaction.disconnect_all_slots(); |
|
|
|
|
|
|
|
g_signals.UpdatedBlockTip.disconnect_all_slots(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void SyncWithWallets(const CTransaction &tx, const CBlock *pblock) { |
|
|
|
void SyncWithWallets(const CTransaction &tx, const CBlock *pblock) { |
|
|
|