mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-10 11:41:21 +00:00
d9799e6b6c
* Rename BeaconBlockBodyMerge to BeaconBlockBodyBellatrix * Rename SignedBeaconBlockMerge to SignedBeaconBlockBellatrix * Rename CopyBeaconBlockMerge to CopyBeaconBlockMerge * Rename NewBeaconBlockMerge to NewBeaconBlockBellatrix * Rename BeaconBlockMerge to BeaconBlockBellatrix * Rename some comments and strings in pkg proto: Merge -> Bellatrix * Rename PbMergeBlock to PbBellatrixBlock * Many renames of merge -> bellatrix in proto package * Rename some Merge -> Bellatrix in beacon chain package * More names * Fix formating in config/params/config.go * Rename Merge -> Bellatrix in proto/prysm/storage * Several renames and corrections Merge -> Bellatrix Co-authored-by: Potuz <potuz@potuz.net> Co-authored-by: terence tsao <terence@prysmaticlabs.com> Co-authored-by: Potuz <potuz@potuz.net> Co-authored-by: Nishant Das <nishdas93@gmail.com>
19 lines
417 B
Go
19 lines
417 B
Go
package kv
|
|
|
|
import "bytes"
|
|
|
|
// In order for an encoding to be Altair compatible, it must be prefixed with altair key.
|
|
func hasAltairKey(enc []byte) bool {
|
|
if len(altairKey) >= len(enc) {
|
|
return false
|
|
}
|
|
return bytes.Equal(enc[:len(altairKey)], altairKey)
|
|
}
|
|
|
|
func hasBellatrixKey(enc []byte) bool {
|
|
if len(bellatrixKey) >= len(enc) {
|
|
return false
|
|
}
|
|
return bytes.Equal(enc[:len(bellatrixKey)], bellatrixKey)
|
|
}
|