From 2b7beff84ef7ac5f5873ed876977e5c5617d1887 Mon Sep 17 00:00:00 2001 From: woodser Date: Wed, 21 Dec 2022 14:51:11 +0000 Subject: [PATCH] remove "Returning balance for subaddress" printout --- .../bisq/core/btc/wallet/XmrWalletService.java | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/core/src/main/java/bisq/core/btc/wallet/XmrWalletService.java b/core/src/main/java/bisq/core/btc/wallet/XmrWalletService.java index a679751c2b..12339003c8 100644 --- a/core/src/main/java/bisq/core/btc/wallet/XmrWalletService.java +++ b/core/src/main/java/bisq/core/btc/wallet/XmrWalletService.java @@ -937,21 +937,7 @@ public class XmrWalletService { } public Coin getBalanceForSubaddress(int subaddressIndex) { - - // get subaddress balance - BigInteger balance = wallet.getBalance(0, subaddressIndex); - -// // balance from xmr wallet does not include unconfirmed funds, so add them // TODO: support lower in stack? -// for (MoneroTxWallet unconfirmedTx : wallet.getTxs(new MoneroTxQuery().setIsConfirmed(false))) { -// for (MoneroTransfer transfer : unconfirmedTx.getTransfers()) { -// if (transfer.getAccountIndex() == subaddressIndex) { -// balance = transfer.isIncoming() ? balance.add(transfer.getAmount()) : balance.subtract(transfer.getAmount()); -// } -// } -// } - - System.out.println("Returning balance for subaddress " + subaddressIndex + ": " + balance.longValueExact()); - return HavenoUtils.atomicUnitsToCoin(balance); + return HavenoUtils.atomicUnitsToCoin(wallet.getBalance(0, subaddressIndex)); } public Coin getAvailableConfirmedBalance() {