We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8dd2962 commit ac04eadCopy full SHA for ac04ead
core/rawdb/accessors_metadata.go
@@ -174,3 +174,16 @@ func UpdateUncleanShutdownMarker(db ethdb.KeyValueStore) {
174
log.Warn("Failed to write unclean-shutdown marker", "err", err)
175
}
176
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
0 commit comments