From 0c9a3ac0a43cd7a1facdabbe6bc67696ecf2b52b Mon Sep 17 00:00:00 2001 From: woodser Date: Tue, 27 Feb 2024 07:19:56 -0500 Subject: [PATCH] rename trade wallets with short id and short uid --- core/src/main/java/haveno/core/trade/Trade.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/haveno/core/trade/Trade.java b/core/src/main/java/haveno/core/trade/Trade.java index 374b62cd..d3f9c7f3 100644 --- a/core/src/main/java/haveno/core/trade/Trade.java +++ b/core/src/main/java/haveno/core/trade/Trade.java @@ -795,7 +795,7 @@ public abstract class Trade implements Tradable, Model { } private String getWalletName() { - return MONERO_TRADE_WALLET_PREFIX + getId(); + return MONERO_TRADE_WALLET_PREFIX + getShortId() + "_" + getShortUid(); } public void checkAndVerifyDaemonConnection() { @@ -1894,6 +1894,10 @@ public abstract class Trade implements Tradable, Model { return offer.getShortId(); } + public String getShortUid() { + return Utilities.getShortId(getUid()); + } + public BigInteger getFrozenAmount() { BigInteger sum = BigInteger.ZERO; for (String keyImage : getSelf().getReserveTxKeyImages()) {