From 932854d7b22391657e39720c641dac5aac2d427c Mon Sep 17 00:00:00 2001 From: woodser Date: Wed, 18 Jan 2023 09:41:16 -0500 Subject: [PATCH] fix persistence of isDepositsConfirmedMessagesDelivered in ProcessModel --- core/src/main/java/bisq/core/trade/protocol/ProcessModel.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/bisq/core/trade/protocol/ProcessModel.java b/core/src/main/java/bisq/core/trade/protocol/ProcessModel.java index 07820a552f..f04a553881 100644 --- a/core/src/main/java/bisq/core/trade/protocol/ProcessModel.java +++ b/core/src/main/java/bisq/core/trade/protocol/ProcessModel.java @@ -220,7 +220,8 @@ public class ProcessModel implements Model, PersistablePayload { .setFundsNeededForTradeAsLong(fundsNeededForTradeAsLong) .setPaymentStartedMessageState(paymentStartedMessageStateProperty.get().name()) .setBuyerPayoutAmountFromMediation(buyerPayoutAmountFromMediation) - .setSellerPayoutAmountFromMediation(sellerPayoutAmountFromMediation); + .setSellerPayoutAmountFromMediation(sellerPayoutAmountFromMediation) + .setDepositsConfirmedMessagesDelivered(isDepositsConfirmedMessagesDelivered); Optional.ofNullable(maker).ifPresent(e -> builder.setMaker((protobuf.TradingPeer) maker.toProtoMessage())); Optional.ofNullable(taker).ifPresent(e -> builder.setTaker((protobuf.TradingPeer) taker.toProtoMessage())); Optional.ofNullable(arbitrator).ifPresent(e -> builder.setArbitrator((protobuf.TradingPeer) arbitrator.toProtoMessage())); @@ -246,6 +247,7 @@ public class ProcessModel implements Model, PersistablePayload { processModel.setFundsNeededForTradeAsLong(proto.getFundsNeededForTradeAsLong()); processModel.setBuyerPayoutAmountFromMediation(proto.getBuyerPayoutAmountFromMediation()); processModel.setSellerPayoutAmountFromMediation(proto.getSellerPayoutAmountFromMediation()); + processModel.setDepositsConfirmedMessagesDelivered(proto.getDepositsConfirmedMessagesDelivered()); // nullable processModel.setTakeOfferFeeTxId(ProtoUtil.stringOrNullFromProto(proto.getTakeOfferFeeTxId()));