ソースを参照

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