Merge pull request #3732 from MarsDoge/MarsDoge

fix compatibility with boost::signal2 in 1.83
This commit is contained in:
Old Dip Tracker 2024-12-09 16:36:34 -05:00 committed by GitHub
commit 7676f91c4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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