Skip to content

Commit

Permalink
Fix sonarcloud issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rmoreliovlabs committed May 22, 2024
1 parent f0f6fbc commit 8c3fc89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 0 additions & 4 deletions rskj-core/src/main/java/co/rsk/core/bc/BlockExecutor.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ public class BlockExecutor {
private final Map<Keccak256, ProgramResult> transactionResults = new HashMap<>();
private boolean registerProgramResults;

private final Constants constants;
private final SignatureCache signatureCache;
private final ClaimTransactionValidator claimTransactionValidator;

public BlockExecutor(
Expand All @@ -76,8 +74,6 @@ public BlockExecutor(
this.repositoryLocator = repositoryLocator;
this.transactionExecutorFactory = transactionExecutorFactory;
this.activationConfig = activationConfig;
this.constants = constants;
this.signatureCache = signatureCache;
this.claimTransactionValidator = new ClaimTransactionValidator(signatureCache, constants);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,9 @@ private boolean senderCanPayPendingTransactionsAndNewTx(Transaction newTx, Repos

if(costWithNewTx.compareTo(currentRepository.getBalance(newTx.getSender(signatureCache))) <= 0) {
return true;
} if(claimTxValidator.isFeatureActive(config.getActivationConfig().forBlock(bestBlock.getNumber()))) {
}

if(claimTxValidator.isFeatureActive(config.getActivationConfig().forBlock(bestBlock.getNumber()))) {
return claimTxValidator.canPayPendingAndNewClaimTx(newTx, currentRepository, transactions);
}

Expand Down

0 comments on commit 8c3fc89

Please sign in to comment.