diff --git a/core/src/main/java/bisq/core/trade/protocol/tasks/seller/SellerPreparesPaymentReceivedMessage.java b/core/src/main/java/bisq/core/trade/protocol/tasks/seller/SellerPreparesPaymentReceivedMessage.java index beb9d03871..5012315d92 100644 --- a/core/src/main/java/bisq/core/trade/protocol/tasks/seller/SellerPreparesPaymentReceivedMessage.java +++ b/core/src/main/java/bisq/core/trade/protocol/tasks/seller/SellerPreparesPaymentReceivedMessage.java @@ -51,6 +51,8 @@ public class SellerPreparesPaymentReceivedMessage extends TradeTask { trade.getSeller().setPayoutTxHex(payoutTx.getTxSet().getMultisigTxHex()); } + // close multisig wallet + processModel.getProvider().getXmrWalletService().closeMultisigWallet(trade.getId()); complete(); } catch (Throwable t) { failed(t); diff --git a/core/src/main/java/bisq/core/trade/protocol/tasks/seller/SellerProcessesPaymentSentMessage.java b/core/src/main/java/bisq/core/trade/protocol/tasks/seller/SellerProcessesPaymentSentMessage.java index 91c481a181..52ddb956b0 100644 --- a/core/src/main/java/bisq/core/trade/protocol/tasks/seller/SellerProcessesPaymentSentMessage.java +++ b/core/src/main/java/bisq/core/trade/protocol/tasks/seller/SellerProcessesPaymentSentMessage.java @@ -25,7 +25,6 @@ import bisq.core.trade.Trade; import bisq.core.trade.messages.PaymentSentMessage; import bisq.core.trade.protocol.tasks.TradeTask; import bisq.core.util.Validator; -import java.util.Arrays; import lombok.extern.slf4j.Slf4j; import monero.wallet.MoneroWallet; @@ -51,7 +50,7 @@ public class SellerProcessesPaymentSentMessage extends TradeTask { // sync and update multisig wallet if (trade.getBuyer().getUpdatedMultisigHex() != null) { XmrWalletService walletService = processModel.getProvider().getXmrWalletService(); - MoneroWallet multisigWallet = walletService.getMultisigWallet(trade.getId()); // TODO: ensure sync() always called before importMultisigHex() + MoneroWallet multisigWallet = walletService.getMultisigWallet(trade.getId()); // TODO: ensure sync() always called before importMultisigHex() multisigWallet.importMultisigHex(trade.getBuyer().getUpdatedMultisigHex()); walletService.closeMultisigWallet(trade.getId()); }