2021-07-23 20:10:15 +00:00
|
|
|
package metadata
|
2021-06-02 05:44:34 +00:00
|
|
|
|
|
|
|
import (
|
2022-06-28 13:03:24 +00:00
|
|
|
ssz "github.com/prysmaticlabs/fastssz"
|
2021-06-02 05:44:34 +00:00
|
|
|
"github.com/prysmaticlabs/go-bitfield"
|
2021-07-28 21:23:44 +00:00
|
|
|
pb "github.com/prysmaticlabs/prysm/proto/prysm/v1alpha1"
|
2021-06-02 05:44:34 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// Metadata returns the interface of a p2p metadata type.
|
|
|
|
type Metadata interface {
|
|
|
|
SequenceNumber() uint64
|
|
|
|
AttnetsBitfield() bitfield.Bitvector64
|
|
|
|
InnerObject() interface{}
|
|
|
|
IsNil() bool
|
|
|
|
Copy() Metadata
|
2021-08-11 19:14:49 +00:00
|
|
|
ssz.Marshaler
|
|
|
|
ssz.Unmarshaler
|
2021-06-02 05:44:34 +00:00
|
|
|
MetadataObjV0() *pb.MetaDataV0
|
|
|
|
MetadataObjV1() *pb.MetaDataV1
|
2021-08-11 19:14:49 +00:00
|
|
|
Version() int
|
2021-06-02 05:44:34 +00:00
|
|
|
}
|