mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-02-07 04:34:18 +00:00
fix compilation errors for Boost 1.83+
This commit is contained in:
parent
17954fcd14
commit
82f286f56b
@ -1648,13 +1648,13 @@ bool AppInitMain()
|
|||||||
// Either install a handler to notify us when genesis activates, or set fHaveGenesis directly.
|
// 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.
|
// No locking, as this happens before any background thread is started.
|
||||||
if (chainActive.Tip() == nullptr) {
|
if (chainActive.Tip() == nullptr) {
|
||||||
uiInterface.NotifyBlockTip.connect(BlockNotifyGenesisWait);
|
uiInterface.NotifyBlockTip.connect(&BlockNotifyGenesisWait);
|
||||||
} else {
|
} else {
|
||||||
fHaveGenesis = true;
|
fHaveGenesis = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gArgs.IsArgSet("-blocknotify"))
|
if (gArgs.IsArgSet("-blocknotify"))
|
||||||
uiInterface.NotifyBlockTip.connect(BlockNotifyCallback);
|
uiInterface.NotifyBlockTip.connect(&BlockNotifyCallback);
|
||||||
|
|
||||||
std::vector<fs::path> vImportFiles;
|
std::vector<fs::path> vImportFiles;
|
||||||
for (const std::string& strFile : gArgs.GetArgs("-loadblock")) {
|
for (const std::string& strFile : gArgs.GetArgs("-loadblock")) {
|
||||||
@ -1672,7 +1672,7 @@ bool AppInitMain()
|
|||||||
while (!fHaveGenesis && !ShutdownRequested()) {
|
while (!fHaveGenesis && !ShutdownRequested()) {
|
||||||
condvar_GenesisWait.wait_for(lock, std::chrono::milliseconds(500));
|
condvar_GenesisWait.wait_for(lock, std::chrono::milliseconds(500));
|
||||||
}
|
}
|
||||||
uiInterface.NotifyBlockTip.disconnect(BlockNotifyGenesisWait);
|
uiInterface.NotifyBlockTip.disconnect(&BlockNotifyGenesisWait);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ShutdownRequested()) {
|
if (ShutdownRequested()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user