mirror of https://github.com/status-im/op-geth.git
docs: fix docstring on read head block (#22776)
This commit is contained in:
parent
793c8f889f
commit
56f533d00c
|
@ -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{}) {
|
||||
|
|
Loading…
Reference in New Issue