mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
core/rawdb: remove unused storage snapshot iterator
This commit is contained in:
parent
2a2f106a01
commit
56ba8b3088
2 changed files with 0 additions and 15 deletions
|
|
@ -102,13 +102,6 @@ func WriteHeaderNumber(db ethdb.KeyValueWriter, hash common.Hash, number uint64)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DeleteHeaderNumber removes hash->number mapping.
|
|
||||||
func DeleteHeaderNumber(db ethdb.KeyValueWriter, hash common.Hash) {
|
|
||||||
if err := db.Delete(headerNumberKey(hash)); err != nil {
|
|
||||||
log.Crit("Failed to delete hash to number mapping", "err", err)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ReadHeadHeaderHash retrieves the hash of the current canonical head header.
|
// ReadHeadHeaderHash retrieves the hash of the current canonical head header.
|
||||||
func ReadHeadHeaderHash(db ethdb.KeyValueReader) common.Hash {
|
func ReadHeadHeaderHash(db ethdb.KeyValueReader) common.Hash {
|
||||||
data, _ := db.Get(headHeaderKey)
|
data, _ := db.Get(headHeaderKey)
|
||||||
|
|
|
||||||
|
|
@ -36,14 +36,6 @@ func WriteSkeletonSyncStatus(db ethdb.KeyValueWriter, status []byte) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DeleteSkeletonSyncStatus deletes the serialized sync status saved at the last
|
|
||||||
// shutdown
|
|
||||||
func DeleteSkeletonSyncStatus(db ethdb.KeyValueWriter) {
|
|
||||||
if err := db.Delete(skeletonSyncStatusKey); err != nil {
|
|
||||||
log.Crit("Failed to remove skeleton sync status", "err", err)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ReadSkeletonHeader retrieves a block header from the skeleton sync store,
|
// ReadSkeletonHeader retrieves a block header from the skeleton sync store,
|
||||||
func ReadSkeletonHeader(db ethdb.KeyValueReader, number uint64) *types.Header {
|
func ReadSkeletonHeader(db ethdb.KeyValueReader, number uint64) *types.Header {
|
||||||
data, _ := db.Get(skeletonHeaderKey(number))
|
data, _ := db.Get(skeletonHeaderKey(number))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue