mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-10 07:58:22 -05:00
* Handle blind block for DB * Update blinded_beacon_block_bellatrix_test.go * Update blocks_test.go Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
24 lines
323 B
Go
24 lines
323 B
Go
package version
|
|
|
|
const (
|
|
Phase0 = iota
|
|
Altair
|
|
Bellatrix
|
|
BellatrixBlind
|
|
)
|
|
|
|
func String(version int) string {
|
|
switch version {
|
|
case Phase0:
|
|
return "phase0"
|
|
case Altair:
|
|
return "altair"
|
|
case Bellatrix:
|
|
return "bellatrix"
|
|
case BellatrixBlind:
|
|
return "bellatrix-blind"
|
|
default:
|
|
return "unknown version"
|
|
}
|
|
}
|