Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
56f533d0
Unverified
Commit
56f533d0
authored
Apr 29, 2021
by
aaronbuchwald
Committed by
GitHub
Apr 29, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: fix docstring on read head block (#22776)
parent
793c8f88
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
accessors_chain.go
core/rawdb/accessors_chain.go
+1
-1
No files found.
core/rawdb/accessors_chain.go
View file @
56f533d0
...
@@ -839,7 +839,7 @@ func ReadHeadHeader(db ethdb.Reader) *types.Header {
...
@@ -839,7 +839,7 @@ func ReadHeadHeader(db ethdb.Reader) *types.Header {
return
ReadHeader
(
db
,
headHeaderHash
,
*
headHeaderNumber
)
return
ReadHeader
(
db
,
headHeaderHash
,
*
headHeaderNumber
)
}
}
// ReadHead
Header
returns the current canonical head block.
// ReadHead
Block
returns the current canonical head block.
func
ReadHeadBlock
(
db
ethdb
.
Reader
)
*
types
.
Block
{
func
ReadHeadBlock
(
db
ethdb
.
Reader
)
*
types
.
Block
{
headBlockHash
:=
ReadHeadBlockHash
(
db
)
headBlockHash
:=
ReadHeadBlockHash
(
db
)
if
headBlockHash
==
(
common
.
Hash
{})
{
if
headBlockHash
==
(
common
.
Hash
{})
{
...
...
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