diff --git a/app/src/main/java/net/mynero/wallet/service/AddressService.java b/app/src/main/java/net/mynero/wallet/service/AddressService.java index 96a1a26..2b883e7 100644 --- a/app/src/main/java/net/mynero/wallet/service/AddressService.java +++ b/app/src/main/java/net/mynero/wallet/service/AddressService.java @@ -15,7 +15,6 @@ import java.util.Locale; public class AddressService extends ServiceBase { public static AddressService instance = null; private int latestAddressIndex = 1; - private int lastUsedSubaddress = 0; public AddressService(MoneroHandlerThread thread) { super(thread); @@ -27,18 +26,9 @@ public class AddressService extends ServiceBase { } public void refreshAddresses() { - List localTransactionList = new ArrayList<>(HistoryService.getInstance().getHistory()); - for (TransactionInfo info : localTransactionList) { - if (info.addressIndex > lastUsedSubaddress) - lastUsedSubaddress = info.addressIndex; - } latestAddressIndex = WalletManager.getInstance().getWallet().getNumSubaddresses(); } - public int getLastUsedSubaddress() { - return lastUsedSubaddress; - } - public int getLatestAddressIndex() { return latestAddressIndex; }