Merge pull request #4250 from dmos62/bugfixes-related-to-switch-statements

Bugfixes related to switch statements
This commit is contained in:
sqrrm 2020-05-26 12:55:35 +02:00 committed by GitHub
commit bc3e12288d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 5 deletions

View File

@ -139,11 +139,8 @@ public class ChangeParamValidator extends ProposalValidator implements Consensus
case PROPOSAL_FEE:
case BLIND_VOTE_FEE:
break;
case COMPENSATION_REQUEST_MIN_AMOUNT:
case REIMBURSEMENT_MIN_AMOUNT:
checkArgument(inputValueAsCoin.value >= Restrictions.getMinNonDustOutput().value,
Res.get("validation.amountBelowDust", Restrictions.getMinNonDustOutput().value));
case COMPENSATION_REQUEST_MAX_AMOUNT:
case REIMBURSEMENT_MAX_AMOUNT:
checkArgument(inputValueAsCoin.value >= Restrictions.getMinNonDustOutput().value,
@ -151,7 +148,6 @@ public class ChangeParamValidator extends ProposalValidator implements Consensus
checkArgument(inputValueAsCoin.value <= 200000000,
Res.get("validation.inputTooLarge", "200 000 BSQ"));
break;
case QUORUM_COMP_REQUEST:
case QUORUM_REIMBURSEMENT:
case QUORUM_CHANGE_PARAM:

View File

@ -293,6 +293,7 @@ class TxOutputParser {
long blindVoteFee = daoStateService.getParamValueAsCoin(Param.BLIND_VOTE_FEE, tempTxOutput.getBlockHeight()).value;
return availableInputValue == blindVoteFee;
}
break;
case VOTE_REVEAL:
break;
case LOCKUP:

View File

@ -235,7 +235,7 @@ public class Connection implements HasCapabilities, Runnable, MessageListener {
protobuf.NetworkEnvelope proto = networkEnvelope.toProtoNetworkEnvelope();
log.trace("Sending message: {}", Utilities.toTruncatedString(proto.toString(), 10000));
if (networkEnvelope instanceof Ping | networkEnvelope instanceof RefreshOfferMessage) {
if (networkEnvelope instanceof Ping || networkEnvelope instanceof RefreshOfferMessage) {
// pings and offer refresh msg we don't want to log in production
log.trace("\n\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n" +
"Sending direct message to peer" +