Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Fukushima <[email protected]>
  • Loading branch information
gfukushima committed Feb 14, 2025
1 parent fb65206 commit 02d20ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ public void validateExecutionPayload(
final List<Transaction> inclusionListTransactions;
if (inclusionLists.isPresent()) {
final int maxTransactionPerInclusionList =
SpecConfigEip7805.required(specConfig).getMaxTransactionsPerInclusionList();
SpecConfigEip7805.required(specConfig).getMaxTransactionsPerInclusionList();
inclusionListTransactions = getInclusionListTransactions(inclusionLists.get());

if (inclusionListTransactions.size() > maxTransactionPerInclusionList) {
throw new BlockProcessingException(
"Number of transaction in the inclusion list in block exceeds max transaction per inclusion list");
"Number of transaction in the inclusion list in block exceeds max transaction per inclusion list");
}
}
super.validateExecutionPayload(genericState, beaconBlockBody, payloadExecutor, inclusionLists);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ public void processDepositAddsNewValidatorWhenPubkeyIsNotFoundInRegistry()
postState.getBalances().size(),
originalValidatorBalancesSize + 1,
"No balance was added to the validator balances.");
if (spec.atSlot(postState.getSlot()).getMilestone().isGreaterThanOrEqualTo(SpecMilestone.ELECTRA)) {
if (spec.atSlot(postState.getSlot())
.getMilestone()
.isGreaterThanOrEqualTo(SpecMilestone.ELECTRA)) {
assertEquals(
makeValidator(pubkey, withdrawalCredentials).withEffectiveBalance(UInt64.ZERO),
postState.getValidators().get(originalValidatorRegistrySize));
Expand Down

0 comments on commit 02d20ba

Please sign in to comment.