docs: fix docstring on read head block (#22776)

This commit is contained in:
aaronbuchwald 2021-04-29 13:23:07 -04:00 committed by GitHub
parent 793c8f889f
commit 56f533d00c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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{}) {