mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-01-03 09:29:44 +00:00
remove "Returning balance for subaddress" printout
This commit is contained in:
parent
e8242612b2
commit
2b7beff84e
1 changed files with 1 additions and 15 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue