Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Nov 30, 2023
1 parent 65fc825 commit e87d8e3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
5 changes: 5 additions & 0 deletions core/mock/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ func NewMockChunkValidator() *MockChunkValidator {
return &MockChunkValidator{}
}

func (v *MockChunkValidator) ValidateBatch(blobs []*core.BlobMessage, operatorState *core.OperatorState) error {
args := v.Called(blobs, operatorState)
return args.Error(0)
}

func (v *MockChunkValidator) ValidateBlob(blob *core.BlobMessage, operatorState *core.OperatorState) error {
args := v.Called(blob, operatorState)
return args.Error(0)
Expand Down
18 changes: 9 additions & 9 deletions node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -430,12 +430,12 @@ func buildSdkClients(config *Config, logger common.Logger) (*constructor.Clients
return sdkClients, nil
}

func (n *Node) validateBlob(ctx context.Context, blob *core.BlobMessage, operatorState *core.OperatorState, out chan error) {
err := n.Validator.ValidateBlob(blob, operatorState)
if err != nil {
out <- err
return
}

out <- nil
}
//func (n *Node) validateBlob(ctx context.Context, blob *core.BlobMessage, operatorState *core.OperatorState, out chan error) {
// err := n.Validator.ValidateBlob(blob, operatorState)
// if err != nil {
// out <- err
// return
// }

// out <- nil
//}

0 comments on commit e87d8e3

Please sign in to comment.