prysm-pulse/proto/prysm/v1alpha1/metadata/metadata_interfaces.go
Raul Jordan 9145310647
Eliminate Proto V2 Namespace (#9297)
* get rid of v2 in prysm codebase

* replace block2

* builds

* terence comments

* gazelle
2021-07-28 21:23:44 +00:00

18 lines
401 B
Go

package metadata
import (
"github.com/prysmaticlabs/go-bitfield"
pb "github.com/prysmaticlabs/prysm/proto/prysm/v1alpha1"
)
// Metadata returns the interface of a p2p metadata type.
type Metadata interface {
SequenceNumber() uint64
AttnetsBitfield() bitfield.Bitvector64
InnerObject() interface{}
IsNil() bool
Copy() Metadata
MetadataObjV0() *pb.MetaDataV0
MetadataObjV1() *pb.MetaDataV1
}