mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 21:07:18 +00:00
49440c90ba
* add in schema * gaz * fix panic in rpc Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
12 lines
261 B
Go
12 lines
261 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)
|
|
}
|