fixing some issues when fetching latest address, i wasn't incremeting the index correctly i think

This commit is contained in:
pokkst 2022-09-12 01:05:27 -05:00
parent 21a81a271a
commit 73ff5082c9
No known key found for this signature in database
GPG Key ID: 90C2ED85E67A50FF

View File

@ -24,8 +24,8 @@ public class AddressService extends ServiceBase {
public void refreshAddresses() { public void refreshAddresses() {
for (TransactionInfo info : HistoryService.getInstance().getHistory()) { for (TransactionInfo info : HistoryService.getInstance().getHistory()) {
if(info.addressIndex > latestAddressIndex) { if(info.addressIndex >= latestAddressIndex) {
latestAddressIndex = info.addressIndex; latestAddressIndex = info.addressIndex + 1;
} }
} }
} }