remove "Returning balance for subaddress" printout

This commit is contained in:
woodser 2022-12-21 14:51:11 +00:00
parent e8242612b2
commit 2b7beff84e

View file

@ -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() {