Skip to content

Commit

Permalink
Add verification EL is never called when transition block hash set
Browse files Browse the repository at this point in the history
  • Loading branch information
zilm13 committed Dec 20, 2024
1 parent 8cccf01 commit c118e70
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verifyNoMoreInteractions;
import static org.mockito.Mockito.when;
import static tech.pegasys.teku.infrastructure.async.SafeFuture.completedFuture;

Expand Down Expand Up @@ -97,6 +98,8 @@ void shouldBeValidWhenTerminalBlockHashMatchesInActivationEpoch() {
.getBellatrixTransitionHelpers()
.orElseThrow()
.validateMergeBlock(executionLayer, payload, blockSlot);
// Verify EL is never called if hash is configured and matches
verifyNoMoreInteractions(executionLayer);
assertPayloadResultStatus(result, ExecutionPayloadStatus.VALID);
}

Expand Down

0 comments on commit c118e70

Please sign in to comment.