From fa5ed16aa4d9dbe3ed47cb53f3cb15b0685a2b96 Mon Sep 17 00:00:00 2001 From: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> Date: Wed, 17 Dec 2025 13:56:00 +0100 Subject: [PATCH] move-only: MAX_BLOCK_TIME_GAP to src/qt Can be reviewed via the git option: --color-moved=dimmed-zebra --- src/chain.h | 8 -------- src/qt/bitcoingui.cpp | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/chain.h b/src/chain.h index 64c86357032..de22b9c9d83 100644 --- a/src/chain.h +++ b/src/chain.h @@ -39,14 +39,6 @@ static constexpr int64_t TIMESTAMP_WINDOW = MAX_FUTURE_BLOCK_TIME; static constexpr int32_t SEQ_ID_BEST_CHAIN_FROM_DISK = 0; static constexpr int32_t SEQ_ID_INIT_FROM_DISK = 1; -/** - * Maximum gap between node time and block time used - * for the "Catching up..." mode in GUI. - * - * Ref: https://github.com/bitcoin/bitcoin/pull/1026 - */ -static constexpr int64_t MAX_BLOCK_TIME_GAP = 90 * 60; - enum BlockStatus : uint32_t { //! Unused. BLOCK_VALID_UNKNOWN = 0, diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp index 6aa8bae0dd5..4a408c87bfd 100644 --- a/src/qt/bitcoingui.cpp +++ b/src/qt/bitcoingui.cpp @@ -72,6 +72,14 @@ #include +/** + * Maximum gap between node time and block time used + * for the "Catching up..." mode in GUI. + * + * Ref: https://github.com/bitcoin/bitcoin/pull/1026 + */ +static constexpr int64_t MAX_BLOCK_TIME_GAP = 90 * 60; + const std::string BitcoinGUI::DEFAULT_UIPLATFORM = #if defined(Q_OS_MACOS) "macosx"