Skip to content

Commit fe38b30

Browse files
committed
export headerTDKey
1 parent 0dca601 commit fe38b30

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/rawdb/schema.go

+4
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,10 @@ func headerTDKey(number uint64, hash common.Hash) []byte {
176176
return append(headerKey(number, hash), headerTDSuffix...)
177177
}
178178

179+
func HeaderTDKey(number uint64, hash common.Hash) []byte {
180+
return headerTDKey(number, hash)
181+
}
182+
179183
// headerHashKey = headerPrefix + num (uint64 big endian) + headerHashSuffix
180184
func headerHashKey(number uint64) []byte {
181185
return append(append(headerPrefix, encodeBlockNumber(number)...), headerHashSuffix...)

0 commit comments

Comments
 (0)