@@ -167,6 +167,10 @@ func headerKey(number uint64, hash common.Hash) []byte {
167
167
return append (append (headerPrefix , encodeBlockNumber (number )... ), hash .Bytes ()... )
168
168
}
169
169
170
+ func HeaderKey (number uint64 , hash common.Hash ) []byte {
171
+ return headerKey (number , hash )
172
+ }
173
+
170
174
// headerTDKey = headerPrefix + num (uint64 big endian) + hash + headerTDSuffix
171
175
func headerTDKey (number uint64 , hash common.Hash ) []byte {
172
176
return append (headerKey (number , hash ), headerTDSuffix ... )
@@ -187,11 +191,19 @@ func blockBodyKey(number uint64, hash common.Hash) []byte {
187
191
return append (append (blockBodyPrefix , encodeBlockNumber (number )... ), hash .Bytes ()... )
188
192
}
189
193
194
+ func BlockBodyKey (number uint64 , hash common.Hash ) []byte {
195
+ return blockBodyKey (number , hash )
196
+ }
197
+
190
198
// blockReceiptsKey = blockReceiptsPrefix + num (uint64 big endian) + hash
191
199
func blockReceiptsKey (number uint64 , hash common.Hash ) []byte {
192
200
return append (append (blockReceiptsPrefix , encodeBlockNumber (number )... ), hash .Bytes ()... )
193
201
}
194
202
203
+ func BlockReceiptsKey (number uint64 , hash common.Hash ) []byte {
204
+ return blockReceiptsKey (number , hash )
205
+ }
206
+
195
207
// txLookupKey = txLookupPrefix + hash
196
208
func txLookupKey (hash common.Hash ) []byte {
197
209
return append (txLookupPrefix , hash .Bytes ()... )
0 commit comments