mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 07:09:15 +01:00
refactor: Pass SynchronizationState enum to GUI
Co-authored-by: Russell Yanofsky <russ@yanofsky.org>
This commit is contained in:
@@ -605,9 +605,9 @@ std::string LicenseInfo()
|
||||
}
|
||||
|
||||
#if HAVE_SYSTEM
|
||||
static void BlockNotifyCallback(bool initialSync, const CBlockIndex *pBlockIndex)
|
||||
static void BlockNotifyCallback(SynchronizationState sync_state, const CBlockIndex* pBlockIndex)
|
||||
{
|
||||
if (initialSync || !pBlockIndex)
|
||||
if (sync_state != SynchronizationState::POST_INIT || !pBlockIndex)
|
||||
return;
|
||||
|
||||
std::string strCmd = gArgs.GetArg("-blocknotify", "");
|
||||
|
||||
Reference in New Issue
Block a user