Skip to content

Commit

Permalink
chore(node-core): removing unused fields + funcs (#1928)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocnc2 authored Aug 19, 2024
1 parent 4310718 commit 935e14a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 17 deletions.
11 changes: 0 additions & 11 deletions mod/beacon/blockchain/receive.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,6 @@ import (
"github.com/berachain/beacon-kit/mod/primitives/pkg/transition"
)

// ReceiveBlock receives a block and blobs from the
// network and processes them.
func (s *Service[
_, BeaconBlockT, _, _, _, _, _, _, _, _,
]) ReceiveBlock(
ctx context.Context,
blk BeaconBlockT,
) error {
return s.VerifyIncomingBlock(ctx, blk)
}

// VerifyIncomingBlock verifies the state root of an incoming block
// and logs the process.
func (s *Service[
Expand Down
3 changes: 0 additions & 3 deletions mod/beacon/validator/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,6 @@ type ExecutionPayloadHeader interface {
GetParentHash() common.ExecutionHash
}

// EventSubscription represents the event subscription interface.
type EventSubscription[T any] chan T

// EventPublisher represents the event publisher interface.
type EventPublisher[T any] interface {
// PublishEvent publishes an event.
Expand Down
4 changes: 1 addition & 3 deletions mod/runtime/pkg/middleware/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,13 @@ import (
"time"

"github.com/berachain/beacon-kit/mod/primitives/pkg/constraints"
"github.com/berachain/beacon-kit/mod/primitives/pkg/math"
)

// BeaconBlock is an interface for accessing the beacon block.
type BeaconBlock[SelfT any] interface {
constraints.SSZMarshallable
constraints.Nillable
constraints.Empty[SelfT]
GetSlot() math.Slot
NewFromSSZ([]byte, uint32) (SelfT, error)
}

Expand All @@ -44,5 +42,5 @@ type TelemetrySink interface {

type BlobSidecars[T any] interface {
constraints.SSZMarshallable
Empty() T
constraints.Empty[T]
}

0 comments on commit 935e14a

Please sign in to comment.