Skip to content
/ besu Public
forked from hyperledger/besu

Commit

Permalink
[MINOR] Remove unused method (hyperledger#6713)
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Dudley <[email protected]>
Signed-off-by: amsmota <[email protected]>
  • Loading branch information
siladu authored and amsmota committed Apr 16, 2024
1 parent 3b5c5e4 commit 75b076b
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,6 @@ protected DefaultProtocolSchedule(final DefaultProtocolSchedule protocolSchedule
this.protocolSpecs = protocolSchedule.protocolSpecs;
}

public ScheduledProtocolSpec specScheduledForBlock(final ProcessableBlockHeader blockHeader) {
return protocolSpecs.stream()
.filter(s -> s.isOnOrAfterMilestoneBoundary(blockHeader))
.findFirst()
.orElseThrow(
() ->
new IllegalStateException(
"No protocol spec found for block " + blockHeader.getNumber()));
}

@Override
public ProtocolSpec getByBlockHeader(final ProcessableBlockHeader blockHeader) {
checkArgument(
Expand Down

0 comments on commit 75b076b

Please sign in to comment.