Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public SafeFuture<InternalValidationResult> validate(
*/
if (!bid.getFeeRecipient().equals(proposerPreferences.get().getFeeRecipient())) {
return completedFuture(
reject(
ignore(
"Bid fee_recipient %s does not match proposer preferences fee_recipient %s",
bid.getFeeRecipient(), proposerPreferences.get().getFeeRecipient()));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,15 +163,15 @@ void shouldSaveForFuture_whenProposerPreferencesNotSeen() {
}

@TestTemplate
void shouldReject_whenFeeRecipientDoesNotMatchProposerPreferences() {
void shouldIgnore_whenFeeRecipientDoesNotMatchProposerPreferences() {
final ProposerPreferences mismatchedPreferences = mock(ProposerPreferences.class);
when(mismatchedPreferences.getFeeRecipient()).thenReturn(dataStructureUtil.randomEth1Address());
when(mismatchedPreferences.getTargetGasLimit()).thenReturn(bid.getGasLimit());
when(proposerPreferencesManager.getProposerPreferences(slot))
.thenReturn(Optional.of(mismatchedPreferences));

assertThatSafeFuture(bidValidator.validate(signedBid))
.isCompletedWithValueMatching(InternalValidationResult::isReject);
.isCompletedWithValueMatching(InternalValidationResult::isIgnore);
}

@TestTemplate
Expand Down
Loading