mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Merge pull request #4250 from dmos62/bugfixes-related-to-switch-statements
Bugfixes related to switch statements
This commit is contained in:
commit
bc3e12288d
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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" +
|
||||
|
Loading…
Reference in New Issue
Block a user