diff options
| author | Hennadii Stepanov <[email protected]> | 2020-03-04 20:05:42 +0200 |
|---|---|---|
| committer | Hennadii Stepanov <[email protected]> | 2020-05-19 02:49:32 +0300 |
| commit | 1dab574edf57ccd6cdf5ec706ac328c62142d7a2 (patch) | |
| tree | ce6c55a92d99648b2adf4cbbda0ccf6c282654bc /src/init.cpp | |
| parent | refactor: Remove unused bool parameter in RPCNotifyBlockChange() (diff) | |
| download | discoin-1dab574edf57ccd6cdf5ec706ac328c62142d7a2.tar.xz discoin-1dab574edf57ccd6cdf5ec706ac328c62142d7a2.zip | |
refactor: Pass SynchronizationState enum to GUI
Co-authored-by: Russell Yanofsky <[email protected]>
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/init.cpp b/src/init.cpp index c5f0a5cf1..341c37cc5 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -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", ""); |