mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-07 02:02:18 +00:00
d17996f8b0
* Update V3 from V4 * Fix build v3 -> v4 * Update ssz * Update beacon_chain.pb.go * Fix formatter import * Update update-mockgen.sh comment to v4 * Fix conflicts. Pass build and tests * Fix test
22 lines
491 B
Go
22 lines
491 B
Go
package metadata
|
|
|
|
import (
|
|
ssz "github.com/prysmaticlabs/fastssz"
|
|
"github.com/prysmaticlabs/go-bitfield"
|
|
pb "github.com/prysmaticlabs/prysm/v4/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
|
|
ssz.Marshaler
|
|
ssz.Unmarshaler
|
|
MetadataObjV0() *pb.MetaDataV0
|
|
MetadataObjV1() *pb.MetaDataV1
|
|
Version() int
|
|
}
|