Skip to content

Commit

Permalink
docs: fix docstring on read head block (#22776)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronbuchwald committed Apr 29, 2021
1 parent 793c8f8 commit 56f533d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/rawdb/accessors_chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ func ReadHeadHeader(db ethdb.Reader) *types.Header {
return ReadHeader(db, headHeaderHash, *headHeaderNumber)
}

// ReadHeadHeader returns the current canonical head block.
// ReadHeadBlock returns the current canonical head block.
func ReadHeadBlock(db ethdb.Reader) *types.Block {
headBlockHash := ReadHeadBlockHash(db)
if headBlockHash == (common.Hash{}) {
Expand Down

0 comments on commit 56f533d

Please sign in to comment.