forked from cerc-io/plugeth
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)
|
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{}) {
|
||||||
|
Loading…
Reference in New Issue
Block a user