Skip to content

Commit f5fcfb2

Browse files
authored
core/rawdb: remove outdated functions (ethereum#32542)
1 parent 70f177a commit f5fcfb2

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

core/rawdb/accessors_metadata.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -174,16 +174,3 @@ func UpdateUncleanShutdownMarker(db ethdb.KeyValueStore) {
174174
log.Warn("Failed to write unclean-shutdown marker", "err", err)
175175
}
176176
}
177-
178-
// ReadTransitionStatus retrieves the eth2 transition status from the database
179-
func ReadTransitionStatus(db ethdb.KeyValueReader) []byte {
180-
data, _ := db.Get(transitionStatusKey)
181-
return data
182-
}
183-
184-
// WriteTransitionStatus stores the eth2 transition status to the database
185-
func WriteTransitionStatus(db ethdb.KeyValueWriter, data []byte) {
186-
if err := db.Put(transitionStatusKey, data); err != nil {
187-
log.Crit("Failed to store the eth2 transition status", "err", err)
188-
}
189-
}

core/rawdb/schema.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ var (
9595
uncleanShutdownKey = []byte("unclean-shutdown") // config prefix for the db
9696

9797
// transitionStatusKey tracks the eth2 transition status.
98-
transitionStatusKey = []byte("eth2-transition")
98+
transitionStatusKey = []byte("eth2-transition") // deprecated
9999

100100
// snapSyncStatusFlagKey flags that status of snap sync.
101101
snapSyncStatusFlagKey = []byte("SnapSyncStatus")

0 commit comments

Comments
 (0)