@@ -22,6 +22,7 @@ void RegisterValidationInterface(CValidationInterface* pwalletIn) {
22
22
g_signals.BlockChecked .connect (boost::bind (&CValidationInterface::BlockChecked, pwalletIn, _1, _2));
23
23
g_signals.ScriptForMining .connect (boost::bind (&CValidationInterface::GetScriptForMining, pwalletIn, _1));
24
24
g_signals.BlockFound .connect (boost::bind (&CValidationInterface::ResetRequestCount, pwalletIn, _1));
25
+ g_signals.NewPoWValidBlock .connect (boost::bind (&CValidationInterface::NewPoWValidBlock, pwalletIn, _1, _2));
25
26
}
26
27
27
28
void UnregisterValidationInterface (CValidationInterface* pwalletIn) {
@@ -34,6 +35,7 @@ void UnregisterValidationInterface(CValidationInterface* pwalletIn) {
34
35
g_signals.UpdatedTransaction .disconnect (boost::bind (&CValidationInterface::UpdatedTransaction, pwalletIn, _1));
35
36
g_signals.SyncTransaction .disconnect (boost::bind (&CValidationInterface::SyncTransaction, pwalletIn, _1, _2, _3));
36
37
g_signals.UpdatedBlockTip .disconnect (boost::bind (&CValidationInterface::UpdatedBlockTip, pwalletIn, _1, _2, _3));
38
+ g_signals.NewPoWValidBlock .disconnect (boost::bind (&CValidationInterface::NewPoWValidBlock, pwalletIn, _1, _2));
37
39
}
38
40
39
41
void UnregisterAllValidationInterfaces () {
@@ -46,4 +48,5 @@ void UnregisterAllValidationInterfaces() {
46
48
g_signals.UpdatedTransaction .disconnect_all_slots ();
47
49
g_signals.SyncTransaction .disconnect_all_slots ();
48
50
g_signals.UpdatedBlockTip .disconnect_all_slots ();
51
+ g_signals.NewPoWValidBlock .disconnect_all_slots ();
49
52
}
0 commit comments