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

revert-23120-drop-eth-65
aaronbuchwald 4 years ago committed by GitHub
parent 793c8f889f
commit 56f533d00c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      core/rawdb/accessors_chain.go

@ -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…
Cancel
Save