瀏覽代碼

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

aaronbuchwald 4 年之前
父節點
當前提交
56f533d00c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/rawdb/accessors_chain.go

+ 1 - 1
core/rawdb/accessors_chain.go

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