prysm-pulse/shared/interfaces/metadata_interface.go
Nishant Das 91bd477f4f
Add Metadata V2 Object and Interface (#8962)
* checkpoint changes

* gaz

* add error check

* gaz

* fix tests

* fix tests

* terence's review

* terence's review

Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-06-02 13:44:34 +08:00

18 lines
402 B
Go

package interfaces
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
}