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:
Raul Jordan
2021-07-23 08:07:40 -05:00
committed by GitHub
parent 526596a679
commit 2d10bcf179
270 changed files with 1548 additions and 1542 deletions

View File

@@ -38,8 +38,8 @@ import (
"github.com/prysmaticlabs/prysm/beacon-chain/core/helpers"
"github.com/prysmaticlabs/prysm/beacon-chain/p2p/peers/peerdata"
"github.com/prysmaticlabs/prysm/beacon-chain/p2p/peers/scorers"
"github.com/prysmaticlabs/prysm/proto/beacon/p2p"
pb "github.com/prysmaticlabs/prysm/proto/beacon/p2p/v1"
"github.com/prysmaticlabs/prysm/proto/interfaces"
pb "github.com/prysmaticlabs/prysm/proto/prysm/v2"
"github.com/prysmaticlabs/prysm/shared/params"
"github.com/prysmaticlabs/prysm/shared/rand"
"github.com/prysmaticlabs/prysm/shared/timeutils"
@@ -230,7 +230,7 @@ func (p *Status) InboundLimit() int {
}
// SetMetadata sets the metadata of the given remote peer.
func (p *Status) SetMetadata(pid peer.ID, metaData p2p.Metadata) {
func (p *Status) SetMetadata(pid peer.ID, metaData interfaces.Metadata) {
p.store.Lock()
defer p.store.Unlock()
@@ -240,7 +240,7 @@ func (p *Status) SetMetadata(pid peer.ID, metaData p2p.Metadata) {
// Metadata returns a copy of the metadata corresponding to the provided
// peer id.
func (p *Status) Metadata(pid peer.ID) (p2p.Metadata, error) {
func (p *Status) Metadata(pid peer.ID) (interfaces.Metadata, error) {
p.store.RLock()
defer p.store.RUnlock()