package p2p //go:generate go run github.com/ferranbt/fastssz/sszgen -path generated.go -exclude-objs Bitvector4,Bitvector64,Bytea,Epoch,Root,Signature,Slot,Ignore import ( "github.com/ledgerwatch/erigon/cmd/lightclient/sentinel/communication" ) type Bitvector4 uint8 type Bitvector64 uint64 type Bytea []byte type Epoch uint64 type Root [32]byte type Signature [96]byte type Slot uint64 type Checkpoint struct { Epoch uint64 `json:"epoch" ` Root Root `json:"root" ssz-size:"32" ` } func (typ *Checkpoint) Clone() communication.Packet { return &Checkpoint{} } type ENRForkID struct { CurrentForkDigest Bytea `json:"current_fork_digest,omitempty" ssz-size:"4" ` NextForkVersion Bytea `json:"next_fork_version,omitempty" ssz-size:"4" ` NextForkEpoch Epoch `json:"next_fork_epoch,omitempty" ` } func (typ *ENRForkID) Clone() communication.Packet { return &ENRForkID{} } type ForkData struct { CurrentVersion [4]byte `json:"current_version" ssz-size:"4" ` GenesisValidatorsRoot Root `json:"genesis_validators_root" ssz-size:"32" ` } func (typ *ForkData) Clone() communication.Packet { return &ForkData{} } type Ping struct { Id uint64 `json:"id" ` } func (typ *Ping) Clone() communication.Packet { return &Ping{} } type SingleRoot struct { Root Root `json:"root" ssz-size:"32" ` BodyRoot Root `json:"body_root" ssz-size:"32" ` } func (typ *SingleRoot) Clone() communication.Packet { return &SingleRoot{} } type Status struct { ForkDigest Bytea `json:"fork_digest,omitempty" ssz-size:"4" ` FinalizedRoot Bytea `json:"finalized_root,omitempty" ssz-size:"32" ` FinalizedEpoch Epoch `json:"finalized_epoch,omitempty" ` HeadRoot Bytea `json:"head_root,omitempty" ssz-size:"32" ` HeadSlot Slot `json:"head_slot,omitempty" ` } func (typ *Status) Clone() communication.Packet { return &Status{} }