@@ -167,19 +167,11 @@ 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
-
174
170
// headerTDKey = headerPrefix + num (uint64 big endian) + hash + headerTDSuffix
175
171
func headerTDKey (number uint64 , hash common.Hash ) []byte {
176
172
return append (headerKey (number , hash ), headerTDSuffix ... )
177
173
}
178
174
179
- func HeaderTDKey (number uint64 , hash common.Hash ) []byte {
180
- return headerTDKey (number , hash )
181
- }
182
-
183
175
// headerHashKey = headerPrefix + num (uint64 big endian) + headerHashSuffix
184
176
func headerHashKey (number uint64 ) []byte {
185
177
return append (append (headerPrefix , encodeBlockNumber (number )... ), headerHashSuffix ... )
@@ -195,19 +187,11 @@ func blockBodyKey(number uint64, hash common.Hash) []byte {
195
187
return append (append (blockBodyPrefix , encodeBlockNumber (number )... ), hash .Bytes ()... )
196
188
}
197
189
198
- func BlockBodyKey (number uint64 , hash common.Hash ) []byte {
199
- return blockBodyKey (number , hash )
200
- }
201
-
202
190
// blockReceiptsKey = blockReceiptsPrefix + num (uint64 big endian) + hash
203
191
func blockReceiptsKey (number uint64 , hash common.Hash ) []byte {
204
192
return append (append (blockReceiptsPrefix , encodeBlockNumber (number )... ), hash .Bytes ()... )
205
193
}
206
194
207
- func BlockReceiptsKey (number uint64 , hash common.Hash ) []byte {
208
- return blockReceiptsKey (number , hash )
209
- }
210
-
211
195
// txLookupKey = txLookupPrefix + hash
212
196
func txLookupKey (hash common.Hash ) []byte {
213
197
return append (txLookupPrefix , hash .Bytes ()... )
0 commit comments