mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 23:18:15 -05:00
Move State Protos Into V2 Namespace (#9257)
* move state protos * regen ssz * edit v1 code * fix imports * building * beacon chain builds * validator and shared builds * fuzz builds * changes * spectest builds * tools build * remove import cycle * generate ssz * pcli * gaz * kafka * gaz
This commit is contained in:
@@ -9,8 +9,8 @@ go_library(
|
||||
deps = [
|
||||
"//beacon-chain/db/kv:go_default_library",
|
||||
"//beacon-chain/state/interface:go_default_library",
|
||||
"//proto/beacon/p2p/v1:go_default_library",
|
||||
"//proto/prysm/v1alpha1:go_default_library",
|
||||
"//proto/prysm/v2/state:go_default_library",
|
||||
"//shared/bytesutil:go_default_library",
|
||||
"@com_github_dustin_go_humanize//:go_default_library",
|
||||
"@com_github_prysmaticlabs_eth2_types//:go_default_library",
|
||||
|
||||
@@ -20,8 +20,8 @@ import (
|
||||
types "github.com/prysmaticlabs/eth2-types"
|
||||
"github.com/prysmaticlabs/prysm/beacon-chain/db/kv"
|
||||
iface "github.com/prysmaticlabs/prysm/beacon-chain/state/interface"
|
||||
pbp2p "github.com/prysmaticlabs/prysm/proto/beacon/p2p/v1"
|
||||
ethpb "github.com/prysmaticlabs/prysm/proto/prysm/v1alpha1"
|
||||
statepb "github.com/prysmaticlabs/prysm/proto/prysm/v2/state"
|
||||
"github.com/prysmaticlabs/prysm/shared/bytesutil"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"github.com/status-im/keycard-go/hexutils"
|
||||
@@ -421,7 +421,7 @@ func sizeAndCountGeneric(genericItems interface{}, err error) (uint64, uint64) {
|
||||
size += uint64(item.SizeSSZ())
|
||||
}
|
||||
count = uint64(len(items))
|
||||
case []*pbp2p.PendingAttestation:
|
||||
case []*statepb.PendingAttestation:
|
||||
for _, item := range items {
|
||||
size += uint64(item.SizeSSZ())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user