Skip to content

Commit 3826a02

Browse files
committed
export headerTDKey
1 parent 3cb82ed commit 3826a02

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/rawdb/schema.go

Lines changed: 4 additions & 0 deletions
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)