prysm-pulse/proto/beacon/p2p/interface.go
terence tsao 7f0749c398
Clean up shared interface package (#9172)
* Remove shared interface folder

* Rename file names

* Gazelle

* Move interface to /beacon/p2p/

Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2021-07-13 18:58:43 +00:00

18 lines
395 B
Go

package p2p
import (
"github.com/prysmaticlabs/go-bitfield"
pb "github.com/prysmaticlabs/prysm/proto/beacon/p2p/v1"
)
// 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
}