Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lbry
lbrycrd
Commits
a568691c
Commit
a568691c
authored
Feb 21, 2020
by
Brannon King
Browse files
MaxTipAge should only apply on mainnet
parent
a4f8b5c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/validation.cpp
View file @
a568691c
...
...
@@ -1106,7 +1106,7 @@ bool IsInitialBlockDownload()
return
true
;
if
(
chainActive
.
Tip
()
->
nChainWork
<
nMinimumChainWork
)
return
true
;
if
(
chainActive
.
Tip
()
->
GetBlockTime
()
<
(
GetTime
()
-
nMaxTipAge
))
if
(
Params
().
NetworkIDString
()
==
CBaseChainParams
::
MAIN
&&
chainActive
.
Tip
()
->
GetBlockTime
()
<
(
GetTime
()
-
nMaxTipAge
))
return
true
;
LogPrintf
(
"Leaving InitialBlockDownload (latching to false)
\n
"
);
latchToFalse
.
store
(
true
,
std
::
memory_order_relaxed
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment