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
1f2681a8
Commit
1f2681a8
authored
7 years ago
by
Alastair Clark
Browse files
Options
Download
Email Patches
Plain Diff
ConnectTip
parent
8a6d532a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main.cpp
+1
-2
src/main.cpp
with
1 addition
and
2 deletions
+1
-2
src/main.cpp
View file @
1f2681a8
...
...
@@ -2404,9 +2404,8 @@ bool static ConnectTip(CValidationState &state, CBlockIndex *pindexNew, CBlock *
LogPrint
(
"bench"
,
" - Load block from disk: %.2fms [%.2fs]
\n
"
,
(
nTime2
-
nTime1
)
*
0.001
,
nTimeReadFromDisk
*
0.000001
);
{
CCoinsViewCache
view
(
pcoinsTip
);
bool rv = ConnectBlock(*pblock, state, pindexNew, view);
g_signals
.
BlockChecked
(
*
pblock
,
state
);
if (!
rv
) {
if
(
!
ConnectBlock
(
*
pblock
,
state
,
pindexNew
,
view
)
)
{
if
(
state
.
IsInvalid
())
InvalidBlockFound
(
pindexNew
,
state
);
return
error
(
"ConnectTip() : ConnectBlock %s failed"
,
pindexNew
->
GetBlockHash
().
ToString
());
...
...
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