From d2cae7c8b58afa2450e84fb859219fd7171f9251 Mon Sep 17 00:00:00 2001 From: catbref Date: Wed, 29 Jul 2020 18:14:47 +0100 Subject: [PATCH] WIP: trade-bot: use correct Bob Bitcoin receive address in log entry --- src/main/java/org/qortal/controller/TradeBot.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/qortal/controller/TradeBot.java b/src/main/java/org/qortal/controller/TradeBot.java index 8d9577c3..d054b27e 100644 --- a/src/main/java/org/qortal/controller/TradeBot.java +++ b/src/main/java/org/qortal/controller/TradeBot.java @@ -877,7 +877,7 @@ public class TradeBot { repository.getCrossChainRepository().save(tradeBotData); repository.saveChanges(); - String receiveAddress = BTC.getInstance().pkhToAddress(tradeBotData.getTradeForeignPublicKeyHash()); + String receiveAddress = BTC.getInstance().pkhToAddress(receivePublicKeyHash); LOGGER.info(() -> String.format("P2SH-A %s redeemed. Funds should arrive at %s", tradeBotData.getAtAddress(), receiveAddress)); }