mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-05 15:52:55 +00:00
core/rawdb: remove outdated functions (#32542)
This commit is contained in:
parent
70f177a527
commit
f5fcfb2fbe
2 changed files with 1 additions and 14 deletions
|
|
@ -174,16 +174,3 @@ func UpdateUncleanShutdownMarker(db ethdb.KeyValueStore) {
|
||||||
log.Warn("Failed to write unclean-shutdown marker", "err", err)
|
log.Warn("Failed to write unclean-shutdown marker", "err", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ReadTransitionStatus retrieves the eth2 transition status from the database
|
|
||||||
func ReadTransitionStatus(db ethdb.KeyValueReader) []byte {
|
|
||||||
data, _ := db.Get(transitionStatusKey)
|
|
||||||
return data
|
|
||||||
}
|
|
||||||
|
|
||||||
// WriteTransitionStatus stores the eth2 transition status to the database
|
|
||||||
func WriteTransitionStatus(db ethdb.KeyValueWriter, data []byte) {
|
|
||||||
if err := db.Put(transitionStatusKey, data); err != nil {
|
|
||||||
log.Crit("Failed to store the eth2 transition status", "err", err)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -95,7 +95,7 @@ var (
|
||||||
uncleanShutdownKey = []byte("unclean-shutdown") // config prefix for the db
|
uncleanShutdownKey = []byte("unclean-shutdown") // config prefix for the db
|
||||||
|
|
||||||
// transitionStatusKey tracks the eth2 transition status.
|
// transitionStatusKey tracks the eth2 transition status.
|
||||||
transitionStatusKey = []byte("eth2-transition")
|
transitionStatusKey = []byte("eth2-transition") // deprecated
|
||||||
|
|
||||||
// snapSyncStatusFlagKey flags that status of snap sync.
|
// snapSyncStatusFlagKey flags that status of snap sync.
|
||||||
snapSyncStatusFlagKey = []byte("SnapSyncStatus")
|
snapSyncStatusFlagKey = []byte("SnapSyncStatus")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue