Add electra DB (#13975)

* Add electra DB

* Fix typo

* Revert deep ssz change

---------

Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
This commit is contained in:
terence
2024-05-09 14:49:17 -07:00
committed by GitHub
parent f3dd75a2c4
commit 102128ca2e
9 changed files with 317 additions and 108 deletions

View File

@@ -7,6 +7,7 @@ go_library(
visibility = ["//visibility:public"],
deps = [
"//consensus-types/primitives:go_default_library",
"//math:go_default_library",
"@org_golang_google_protobuf//proto:go_default_library",
],
)

View File

@@ -5,6 +5,7 @@ import (
"unsafe"
"github.com/prysmaticlabs/prysm/v5/consensus-types/primitives"
"github.com/prysmaticlabs/prysm/v5/math"
"google.golang.org/protobuf/proto"
)
@@ -230,6 +231,8 @@ func deepValueBaseTypeEqual(v1, v2 reflect.Value) bool {
return v1.Interface().(primitives.ValidatorIndex) == v2.Interface().(primitives.ValidatorIndex)
case "CommitteeIndex":
return v1.Interface().(primitives.CommitteeIndex) == v2.Interface().(primitives.CommitteeIndex)
case "Gwei":
return v1.Interface().(math.Gwei) == v2.Interface().(math.Gwei)
}
return v1.Interface().(uint64) == v2.Interface().(uint64)
case reflect.Uint32: