From 73ff5082c9eacc78a1ef3b1c1ff3b7dd1cc8f4c4 Mon Sep 17 00:00:00 2001 From: pokkst Date: Mon, 12 Sep 2022 01:05:27 -0500 Subject: [PATCH] fixing some issues when fetching latest address, i wasn't incremeting the index correctly i think --- .../java/com/m2049r/xmrwallet/service/AddressService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/m2049r/xmrwallet/service/AddressService.java b/app/src/main/java/com/m2049r/xmrwallet/service/AddressService.java index 1086d1e..bc3d86d 100644 --- a/app/src/main/java/com/m2049r/xmrwallet/service/AddressService.java +++ b/app/src/main/java/com/m2049r/xmrwallet/service/AddressService.java @@ -24,8 +24,8 @@ public class AddressService extends ServiceBase { public void refreshAddresses() { for (TransactionInfo info : HistoryService.getInstance().getHistory()) { - if(info.addressIndex > latestAddressIndex) { - latestAddressIndex = info.addressIndex; + if(info.addressIndex >= latestAddressIndex) { + latestAddressIndex = info.addressIndex + 1; } } }