Skip to content

Commit

Permalink
export headerTDKey
Browse files Browse the repository at this point in the history
  • Loading branch information
magicxyyz committed Jan 29, 2025
1 parent 0dca601 commit fe38b30
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/rawdb/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,10 @@ func headerTDKey(number uint64, hash common.Hash) []byte {
return append(headerKey(number, hash), headerTDSuffix...)
}

func HeaderTDKey(number uint64, hash common.Hash) []byte {
return headerTDKey(number, hash)
}

// headerHashKey = headerPrefix + num (uint64 big endian) + headerHashSuffix
func headerHashKey(number uint64) []byte {
return append(append(headerPrefix, encodeBlockNumber(number)...), headerHashSuffix...)
Expand Down

0 comments on commit fe38b30

Please sign in to comment.