Skip to content

Commit

Permalink
use set instead of list
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanBratanov committed Nov 3, 2023
1 parent 3a6a5e0 commit 67645df
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
package tech.pegasys.teku.networking.eth2.rpc.beaconchain.methods;

import java.util.List;
import java.util.Set;
import tech.pegasys.teku.kzg.KZG;
import tech.pegasys.teku.networking.eth2.rpc.beaconchain.methods.BlobSidecarsResponseInvalidResponseException.InvalidResponseType;
import tech.pegasys.teku.networking.p2p.peer.Peer;
Expand All @@ -23,15 +24,15 @@

public class BlobSidecarsByRootValidator extends AbstractBlobSidecarsValidator {

private final List<BlobIdentifier> expectedBlobIdentifiers;
private final Set<BlobIdentifier> expectedBlobIdentifiers;

public BlobSidecarsByRootValidator(
final Peer peer,
final Spec spec,
final KZG kzg,
final List<BlobIdentifier> expectedBlobIdentifiers) {
super(peer, spec, kzg);
this.expectedBlobIdentifiers = expectedBlobIdentifiers;
this.expectedBlobIdentifiers = Set.copyOf(expectedBlobIdentifiers);
}

public void validate(final BlobSidecar blobSidecar) {
Expand Down

0 comments on commit 67645df

Please sign in to comment.