Skip to content

Commit

Permalink
removing iface
Browse files Browse the repository at this point in the history
  • Loading branch information
srene committed Oct 10, 2024
1 parent 9c25e73 commit ddf4015
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions block/stateupdate_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,12 @@ import (
"github.com/dymensionxyz/dymint/types"
)

type P2PBlockValidator interface {
ValidateP2PBlocks(daBlocks []*types.Block, p2pBlocks []*types.Block) error
}

type DABlocksValidator interface {
ValidateDaBlocks(slBatch *settlement.ResultRetrieveBatch, daBlocks []*types.Block) error
}

// StateUpdateValidator is a validator for messages gossiped in the p2p network.
type StateUpdateValidator struct {
logger types.Logger
blockManager *Manager
}

var (
_ DABlocksValidator = &StateUpdateValidator{}
_ P2PBlockValidator = &StateUpdateValidator{}
)

// NewValidator creates a new Validator.
func NewStateUpdateValidator(logger types.Logger, blockManager *Manager) *StateUpdateValidator {
return &StateUpdateValidator{
Expand Down Expand Up @@ -99,7 +86,6 @@ func (v *StateUpdateValidator) ValidateStateUpdate(batch *settlement.ResultRetri
}

func (v *StateUpdateValidator) ValidateP2PBlocks(daBlocks []*types.Block, p2pBlocks []*types.Block) error {

// nothing to compare
if len(p2pBlocks) == 0 {
return nil
Expand Down

0 comments on commit ddf4015

Please sign in to comment.