From 731363d128204c37c6f0de75a0bb0b770715bde1 Mon Sep 17 00:00:00 2001 From: HenrikJannsen Date: Fri, 4 Nov 2022 10:56:10 -0500 Subject: [PATCH] Sort getBtcFeeReceiverAddress by amount and address. Increase minOutputAmount to 1000 sat. Cleanups Signed-off-by: HenrikJannsen --- .../dao/burningman/BurningManCandidate.java | 17 +++----------- .../dao/burningman/BurningManService.java | 22 ++++++++++--------- .../bisq/core/support/dispute/Dispute.java | 2 +- .../support/dispute/DisputeValidation.java | 2 ++ .../trade/bisq_v1/TradeDataValidation.java | 3 ++- .../bisq/core/trade/model/bisq_v1/Trade.java | 5 +++-- .../burnbsq/burningmen/BurningmenView.java | 3 ++- .../dispute/agent/DisputeAgentView.java | 3 +-- 8 files changed, 26 insertions(+), 31 deletions(-) diff --git a/core/src/main/java/bisq/core/dao/burningman/BurningManCandidate.java b/core/src/main/java/bisq/core/dao/burningman/BurningManCandidate.java index e4eb682c6f..36476a7b4a 100644 --- a/core/src/main/java/bisq/core/dao/burningman/BurningManCandidate.java +++ b/core/src/main/java/bisq/core/dao/burningman/BurningManCandidate.java @@ -29,7 +29,7 @@ import lombok.extern.slf4j.Slf4j; @Slf4j @Getter @EqualsAndHashCode -public final class BurningManCandidate implements Comparable { +public final class BurningManCandidate { private long accumulatedCompensationAmount; private long accumulatedDecayedCompensationAmount; private long accumulatedBurnAmount; @@ -39,7 +39,6 @@ public final class BurningManCandidate implements Comparable compensationModels = new ArrayList<>(); private final List burnOutputModels = new ArrayList<>(); @@ -92,21 +91,11 @@ public final class BurningManCandidate implements Comparable new ReadOnlyObjectWrapper<>(item.getValue())); column.getStyleClass().add("first-column"); column.setCellFactory(new Callback<>() { diff --git a/desktop/src/main/java/bisq/desktop/main/support/dispute/agent/DisputeAgentView.java b/desktop/src/main/java/bisq/desktop/main/support/dispute/agent/DisputeAgentView.java index ff5dca4fec..62217a98d2 100644 --- a/desktop/src/main/java/bisq/desktop/main/support/dispute/agent/DisputeAgentView.java +++ b/desktop/src/main/java/bisq/desktop/main/support/dispute/agent/DisputeAgentView.java @@ -151,9 +151,8 @@ public abstract class DisputeAgentView extends DisputeView implements MultipleHo } private String getValidationExceptionMessage(DisputeValidation.ValidationException exception) { - Dispute dispute = exception.getDispute(); if (exception instanceof DisputeValidation.AddressException) { - return getAddressExceptionMessage(dispute); + return getAddressExceptionMessage(exception.getDispute()); } else if (exception.getMessage() != null && !exception.getMessage().isEmpty()) { return exception.getMessage(); } else {