Skip to content

Commit fa5ed16

Browse files
author
MarcoFalke
committed
move-only: MAX_BLOCK_TIME_GAP to src/qt
Can be reviewed via the git option: --color-moved=dimmed-zebra
1 parent 13891a8 commit fa5ed16

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/chain.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,6 @@ static constexpr int64_t TIMESTAMP_WINDOW = MAX_FUTURE_BLOCK_TIME;
3939
static constexpr int32_t SEQ_ID_BEST_CHAIN_FROM_DISK = 0;
4040
static constexpr int32_t SEQ_ID_INIT_FROM_DISK = 1;
4141

42-
/**
43-
* Maximum gap between node time and block time used
44-
* for the "Catching up..." mode in GUI.
45-
*
46-
* Ref: https://github.com/bitcoin/bitcoin/pull/1026
47-
*/
48-
static constexpr int64_t MAX_BLOCK_TIME_GAP = 90 * 60;
49-
5042
enum BlockStatus : uint32_t {
5143
//! Unused.
5244
BLOCK_VALID_UNKNOWN = 0,

src/qt/bitcoingui.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@
7272
#include <QWindow>
7373

7474

75+
/**
76+
* Maximum gap between node time and block time used
77+
* for the "Catching up..." mode in GUI.
78+
*
79+
* Ref: https://github.com/bitcoin/bitcoin/pull/1026
80+
*/
81+
static constexpr int64_t MAX_BLOCK_TIME_GAP = 90 * 60;
82+
7583
const std::string BitcoinGUI::DEFAULT_UIPLATFORM =
7684
#if defined(Q_OS_MACOS)
7785
"macosx"

0 commit comments

Comments
 (0)