Skip to content

Commit

Permalink
sonarcloud fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fedejinich committed Aug 26, 2021
1 parent 63e3cab commit b5a8d51
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,4 @@ public long getPeerScoringSummaryTime() {
public boolean fastBlockPropagation() {
return configFromFiles.getBoolean("peer.fastBlockPropagation");
}

public long getGasEstimationCap() {
return configFromFiles.getLong("rpc.gasEstimationCap");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
import org.slf4j.LoggerFactory;

import java.io.IOException;
import java.math.BigInteger;
import java.util.Arrays;
import java.util.Map;
import java.util.Optional;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -668,4 +668,8 @@ private Optional<List<BtcECKey>> getGenesisFederationPublicKeys() {
.map(key -> BtcECKey.fromPublicOnly(Hex.decode(key))).collect(Collectors.toList())
);
}

public long getGasEstimationCap() {
return configFromFiles.getLong(PROPERTY_RPC_GAS_ESTIMATION_CAP);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ public TransactionReceipt getReceipt() {
}

public boolean getProgramCallWithValuePerformed() {
return program != null ? program.getCallWithValuePerformed() : false;
return program != null && program.getCallWithValuePerformed();
}

private void finalization() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,10 @@

import co.rsk.core.RskAddress;
import org.ethereum.rpc.CallArguments;
import org.ethereum.rpc.TypeConverter;
import org.ethereum.util.ByteUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.math.BigInteger;

import static org.ethereum.rpc.TypeConverter.stringHexToByteArray;

/**
Expand Down

0 comments on commit b5a8d51

Please sign in to comment.