From 82f286f56b6ea1fc3aa5358a52fc26966a41d9fd Mon Sep 17 00:00:00 2001 From: kvazar-network Date: Sun, 29 Dec 2024 22:44:12 +0200 Subject: [PATCH] fix compilation errors for Boost 1.83+ --- src/init.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/init.cpp b/src/init.cpp index eb7c3bd27..c084dbeb0 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1648,13 +1648,13 @@ bool AppInitMain() // 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() == nullptr) { - uiInterface.NotifyBlockTip.connect(BlockNotifyGenesisWait); + uiInterface.NotifyBlockTip.connect(&BlockNotifyGenesisWait); } else { fHaveGenesis = true; } if (gArgs.IsArgSet("-blocknotify")) - uiInterface.NotifyBlockTip.connect(BlockNotifyCallback); + uiInterface.NotifyBlockTip.connect(&BlockNotifyCallback); std::vector vImportFiles; for (const std::string& strFile : gArgs.GetArgs("-loadblock")) { @@ -1672,7 +1672,7 @@ bool AppInitMain() while (!fHaveGenesis && !ShutdownRequested()) { condvar_GenesisWait.wait_for(lock, std::chrono::milliseconds(500)); } - uiInterface.NotifyBlockTip.disconnect(BlockNotifyGenesisWait); + uiInterface.NotifyBlockTip.disconnect(&BlockNotifyGenesisWait); } if (ShutdownRequested()) {