Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Josh Wilcox
crown-core
Commits
bff218ab
Commit
bff218ab
authored
9 years ago
by
Evan Duffield
Browse files
Options
Download
Email Patches
Plain Diff
Update isBlockchainSynced requirements
parent
4a268ffa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/masternode-sync.cpp
+2
-2
src/masternode-sync.cpp
with
2 additions
and
2 deletions
+2
-2
src/masternode-sync.cpp
View file @
bff218ab
...
...
@@ -33,7 +33,7 @@ bool CMasternodeSync::IsBlockchainSynced()
CBlockIndex
*
pindexPrev
=
chainActive
.
Tip
();
if
(
pindexPrev
==
NULL
)
return
false
;
if
(
pindexPrev
->
nHeight
+
4
<
pindexBestHeader
->
nHeight
||
pindexPrev
->
nTime
+
600
<
GetTime
())
return
false
;
if
(
pindexPrev
->
nTime
+
600
<
GetTime
())
return
false
;
return
true
;
}
...
...
@@ -154,7 +154,7 @@ void CMasternodeSync::Process()
if
(
IsInitialBlockDownload
())
return
;
//don't begin syncing until we're almost at a recent block
if
(
pindexPrev
->
nHeight
+
4
<
pindexBestHeader
->
nHeight
||
pindexPrev
->
nTime
+
600
<
GetTime
())
return
;
if
(
pindexPrev
->
nTime
+
600
<
GetTime
())
return
;
if
(
pnode
->
nVersion
>=
masternodePayments
.
GetMinMasternodePaymentsProto
())
{
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help