Unverified Commit 56f533d0 authored by aaronbuchwald's avatar aaronbuchwald Committed by GitHub

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

parent 793c8f88
...@@ -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)
} }
// ReadHeadHeader returns the current canonical head block. // ReadHeadBlock 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{}) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment