diff --git a/src/init.cpp b/src/init.cpp index d6c224a10..94ac81f8b 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1650,7 +1650,7 @@ bool AppInitMain(boost::thread_group& threadGroup, CScheduler& scheduler) // Either install a handler to notify us when genesis activates, or set fHaveGenesis directly. // No locking, as this happens before any background thread is started. if (chainActive.Tip() == NULL) { - uiInterface.NotifyBlockTip.connect(BlockNotifyGenesisWait); + uiInterface.NotifyBlockTip.connect(&BlockNotifyGenesisWait); } else { fHaveGenesis = true; } @@ -1673,7 +1673,7 @@ bool AppInitMain(boost::thread_group& threadGroup, CScheduler& scheduler) while (!fHaveGenesis) { condvar_GenesisWait.wait(lock); } - uiInterface.NotifyBlockTip.disconnect(BlockNotifyGenesisWait); + uiInterface.NotifyBlockTip.disconnect(&BlockNotifyGenesisWait); } // ********************************************************* Step 11: start node